summaryrefslogtreecommitdiffstats
path: root/gatchat/gatutil.h
diff options
context:
space:
mode:
authorZhenhua Zhang <zhenhua.zhang@intel.com>2010-01-15 09:15:38 +0800
committerDenis Kenzior <denkenz@gmail.com>2010-01-20 14:13:57 -0600
commit7145edd3a416b133da1a208292b919256c822baf (patch)
treeb82a7390f207785b950889869782b1cdbcf1a60a /gatchat/gatutil.h
parente82972722418407737c68631a78bb3c96e6f7d55 (diff)
downloadofono-7145edd3a416b133da1a208292b919256c822baf.tar.bz2
Add gatutil.c to share common APIs with GAtServer
Add gatutil.c/h gat.h and move shared typedef and APIs into it. So that they can be shared by GAtServer and GAtChat.
Diffstat (limited to 'gatchat/gatutil.h')
-rw-r--r--gatchat/gatutil.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/gatchat/gatutil.h b/gatchat/gatutil.h
new file mode 100644
index 00000000..b17dad44
--- /dev/null
+++ b/gatchat/gatutil.h
@@ -0,0 +1,40 @@
+/*
+ *
+ * AT chat library with GLib integration
+ *
+ * Copyright (C) 2008-2010 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 version 2 as
+ * published by the Free Software Foundation.
+ *
+ * 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
+ *
+ */
+
+#ifndef __GATUTIL_H
+#define __GATUTIL_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include "gat.h"
+
+void g_at_util_debug_chat(GAtDebugFunc debugf, gboolean in, const char *str,
+ gsize len, gpointer user_data);
+
+gboolean g_at_util_setup_io(GIOChannel *io);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __GATUTIL_H */