return 0;
}
-static void create(const char *endpoint, const char *privilege)
+static void __create(const char *endpoint, const char *privilege)
{
aul_app_com_permission_h permission = NULL;
aul_app_com_permission_destroy(permission);
}
-static void join(const char *endpoint, const char *filter)
+static void __join(const char *endpoint, const char *filter)
{
int ret = aul_app_com_join(endpoint, filter, __handler, NULL, &conn);
printf("ret: %d\n", ret);
}
-static void send(const char *endpoint)
+static void __send(const char *endpoint)
{
int idx = 2;
int ret;
if (g_strcmp0(gargv[1], "create") == 0) {
if (gargc == 3)
- create(gargv[2], NULL);
+ __create(gargv[2], NULL);
else if (gargc == 4)
- create(gargv[2], gargv[3]);
+ __create(gargv[2], gargv[3]);
}
if (g_strcmp0(gargv[1], "join") == 0) {
if (gargc == 3)
- join(gargv[2], NULL);
+ __join(gargv[2], NULL);
else if (gargc == 4)
- join(gargv[2], gargv[3]);
+ __join(gargv[2], gargv[3]);
}
if (g_strcmp0(gargv[1], "send") == 0) {
if (gargc > 4)
- send(gargv[2]);
+ __send(gargv[2]);
}
return FALSE;