summaryrefslogtreecommitdiff
path: root/client/commands.h
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2013-03-27 11:53:49 (GMT)
committerPatrik Flykt <patrik.flykt@linux.intel.com>2013-04-04 07:22:13 (GMT)
commit3ff40ccff44a46e735189b528abd73a3ff7a0511 (patch)
tree18686c3c705fa7e47271f574967d849f2dd3b091 /client/commands.h
parent4f21d25e38219c3b909674327d66c2d6219e99c2 (diff)
downloadconnman-3ff40ccff44a46e735189b528abd73a3ff7a0511.zip
connman-3ff40ccff44a46e735189b528abd73a3ff7a0511.tar.gz
connman-3ff40ccff44a46e735189b528abd73a3ff7a0511.tar.bz2
client: Add input handling
Set up readline command line input handling. Add helper functions to save and redraw the command line when output needs to be printed to the screen.
Diffstat (limited to 'client/commands.h')
-rw-r--r--client/commands.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/client/commands.h b/client/commands.h
new file mode 100644
index 0000000..b3536a6
--- /dev/null
+++ b/client/commands.h
@@ -0,0 +1,25 @@
+/*
+ *
+ * Connection Manager
+ *
+ * Copyright (C) 2013 Intel Corporation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ */
+
+#include <dbus/dbus.h>
+
+int commands(DBusConnection *connection, char *argv[], int argc);