From 059a6df1fd424c76ac6b1a7d54f187a95822f5f6 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 3 Sep 2013 12:23:45 +0200 Subject: [PATCH] plugin: expose rpc_session_create_cb() and rpc_session_destroy_cb() in plugin ops; rename access to session_access --- plugin.c | 6 ++++-- plugin.h | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) 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, -- 2.25.1