plugin: expose rpc_session_create_cb() and rpc_session_destroy_cb() in plugin ops; rename access to session_access
This commit is contained in:
parent
60b9c9d919
commit
059a6df1fd
2 changed files with 8 additions and 4 deletions
4
plugin.c
4
plugin.c
|
@ -401,7 +401,9 @@ out:
|
|||
static LIST_HEAD(plugins);
|
||||
|
||||
static const struct rpc_daemon_ops ops = {
|
||||
.access = rpc_session_access,
|
||||
.session_access = rpc_session_access,
|
||||
.session_create_cb = rpc_session_create_cb,
|
||||
.session_destroy_cb = rpc_session_destroy_cb,
|
||||
.exec = rpc_exec,
|
||||
};
|
||||
|
||||
|
|
4
plugin.h
4
plugin.h
|
@ -44,8 +44,10 @@
|
|||
#define RPC_LIBRARY_DIRECTORY "/usr/lib/rpcd"
|
||||
|
||||
struct rpc_daemon_ops {
|
||||
bool (*access)(const char *sid, const char *scope,
|
||||
bool (*session_access)(const char *sid, const char *scope,
|
||||
const char *object, const char *function);
|
||||
void (*session_create_cb)(struct rpc_session_cb *cb);
|
||||
void (*session_destroy_cb)(struct rpc_session_cb *cb);
|
||||
int (*exec)(const char **args,
|
||||
rpc_exec_write_cb_t in, rpc_exec_read_cb_t out,
|
||||
rpc_exec_read_cb_t err, rpc_exec_done_cb_t end,
|
||||
|
|
Loading…
Reference in a new issue