plugin: expose rpc_session_create_cb() and rpc_session_destroy_cb() in plugin ops...
[project/rpcd.git] / plugin.c
index 56260e2..afc1383 100644 (file)
--- a/plugin.c
+++ b/plugin.c
@@ -1,5 +1,5 @@
 /*
- * luci-rpcd - LuCI UBUS RPC server
+ * rpcd - UBUS RPC server
  *
  *   Copyright (C) 2013 Jo-Philipp Wich <jow@openwrt.org>
  *
@@ -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