build: honour CMake install prefix in hardcoded paths
[project/rpcd.git] / include / rpcd / session.h
index 7fa388e5360e8fde6ce259609b8c6830a160c4c6..8ff3ed0cd35f2fb13b8a36de0d9f338bf95f7b99 100644 (file)
@@ -2,7 +2,7 @@
  * rpcd - UBUS RPC server
  *
  *   Copyright (C) 2013 Felix Fietkau <nbd@openwrt.org>
- *   Copyright (C) 2013 Jo-Philipp Wich <jow@openwrt.org>
+ *   Copyright (C) 2013-2014 Jo-Philipp Wich <jow@openwrt.org>
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
 
 #define RPC_SID_LEN    32
 #define RPC_DEFAULT_SESSION_TIMEOUT    300
+#define RPC_DEFAULT_SESSION_ID "00000000000000000000000000000000"
 #define RPC_SESSION_DIRECTORY  "/var/run/rpcd/sessions"
+#define RPC_SESSION_ACL_DIR            INSTALL_PREFIX "/share/rpcd/acl.d"
+
+extern char apply_sid[RPC_SID_LEN + 1];
 
 struct rpc_session {
        struct avl_node avl;