client: Follow coding style
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Thu, 18 Apr 2013 07:00:00 +0000 (10:00 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Tue, 23 Apr 2013 09:35:30 +0000 (12:35 +0300)
Follow coding style and use __connmanctl prefix for the commands() function.

client/commands.c
client/commands.h
client/input.c

index a463e00f40c7876b86e6edb32e00f759ad25663f..8b4ca53573cb7ee1b0d9aa0780528c19b927aaeb 100644 (file)
@@ -1256,7 +1256,7 @@ static int cmd_help(char *args[], int num, struct option *options)
        return 0;
 }
 
-int commands(DBusConnection *dbus_conn, char *argv[], int argc)
+int __connmanctl_commands(DBusConnection *dbus_conn, char *argv[], int argc)
 {
        int i, result;
 
index b3536a6c42729949c6d041a726096cabc67013f7..ce9ceca2d0f4094f3eae613ab9f615000d811d00 100644 (file)
@@ -22,4 +22,4 @@
 
 #include <dbus/dbus.h>
 
-int commands(DBusConnection *connection, char *argv[], int argc);
+int __connmanctl_commands(DBusConnection *connection, char *argv[], int argc);
index 289faea9d42005589331863264949400f651538b..f1aa0d343c3c39e487e1c107884ea050c0ffe4c4 100644 (file)
@@ -102,7 +102,7 @@ static void rl_handler(char *input)
        args = g_strsplit(input, " ", 0);
        num = g_strv_length(args);
 
-       err = commands(connection, args, num);
+       err = __connmanctl_commands(connection, args, num);
 
        g_strfreev(args);
 
@@ -160,9 +160,10 @@ int __connmanctl_input_init(int argc, char *argv[])
 
                if (strcmp(argv[1], "--help") == 0 ||
                                strcmp(argv[1], "-h") == 0)
-                       err = commands(connection, help, 1);
+                       err = __connmanctl_commands(connection, help, 1);
                else
-                       err = commands(connection, argv + 1, argc -1);
+                       err = __connmanctl_commands(connection, argv + 1,
+                                       argc -1);
        }
 
        if (err == -EINPROGRESS) {