projects
/
project
/
rpcd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
524032c
)
uci: expose rpc_uci_purge_savedirs() helper
author
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 5 Sep 2013 12:25:51 +0000
(14:25 +0200)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 5 Sep 2013 12:38:01 +0000
(14:38 +0200)
include/rpcd/uci.h
patch
|
blob
|
history
uci.c
patch
|
blob
|
history
diff --git
a/include/rpcd/uci.h
b/include/rpcd/uci.h
index a4f79e26ef6726a6baf89594a487292fd4748363..7a169f22d3944097e123f3ae07ffc2a45fbb1c89 100644
(file)
--- a/
include/rpcd/uci.h
+++ b/
include/rpcd/uci.h
@@
-32,4
+32,6
@@
int rpc_uci_api_init(struct ubus_context *ctx);
+void rpc_uci_purge_savedirs(void);
+
#endif
diff --git
a/uci.c
b/uci.c
index 3fd187d65e8227f5debbe01436c68f302285dc40..0fede861aaeac674e1d3a32dd47d1ca9724f5c1e 100644
(file)
--- a/
uci.c
+++ b/
uci.c
@@
-1159,8
+1159,7
@@
rpc_uci_purge_savedir_cb(struct rpc_session *ses, void *priv)
* Removes all delta directories which match the /tmp/.uci-rpc-* pattern.
* This is used to clean up garbage when starting rpcd.
*/
-static void
-rpc_uci_purge_savedirs(void)
+void rpc_uci_purge_savedirs(void)
{
int i;
glob_t gl;
@@
-1208,7
+1207,6
@@
int rpc_uci_api_init(struct ubus_context *ctx)
if (!cursor)
return UBUS_STATUS_UNKNOWN_ERROR;
- rpc_uci_purge_savedirs();
rpc_session_destroy_cb(&cb);
return ubus_add_object(ctx, &obj);