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
6
plugin.c
6
plugin.c
|
@ -401,8 +401,10 @@ out:
|
||||||
static LIST_HEAD(plugins);
|
static LIST_HEAD(plugins);
|
||||||
|
|
||||||
static const struct rpc_daemon_ops ops = {
|
static const struct rpc_daemon_ops ops = {
|
||||||
.access = rpc_session_access,
|
.session_access = rpc_session_access,
|
||||||
.exec = rpc_exec,
|
.session_create_cb = rpc_session_create_cb,
|
||||||
|
.session_destroy_cb = rpc_session_destroy_cb,
|
||||||
|
.exec = rpc_exec,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|
6
plugin.h
6
plugin.h
|
@ -44,8 +44,10 @@
|
||||||
#define RPC_LIBRARY_DIRECTORY "/usr/lib/rpcd"
|
#define RPC_LIBRARY_DIRECTORY "/usr/lib/rpcd"
|
||||||
|
|
||||||
struct rpc_daemon_ops {
|
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);
|
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,
|
int (*exec)(const char **args,
|
||||||
rpc_exec_write_cb_t in, rpc_exec_read_cb_t out,
|
rpc_exec_write_cb_t in, rpc_exec_read_cb_t out,
|
||||||
rpc_exec_read_cb_t err, rpc_exec_done_cb_t end,
|
rpc_exec_read_cb_t err, rpc_exec_done_cb_t end,
|
||||||
|
|
Loading…
Reference in a new issue