diff --git a/plugin.c b/plugin.c index 33266b3..afc1383 100644 --- a/plugin.c +++ b/plugin.c @@ -401,8 +401,10 @@ out: static LIST_HEAD(plugins); static const struct rpc_daemon_ops ops = { - .access = rpc_session_access, - .exec = rpc_exec, + .session_access = rpc_session_access, + .session_create_cb = rpc_session_create_cb, + .session_destroy_cb = rpc_session_destroy_cb, + .exec = rpc_exec, }; static int diff --git a/plugin.h b/plugin.h index 0d10f09..6b3d244 100644 --- a/plugin.h +++ b/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, - const char *object, const char *function); + 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,