summaryrefslogtreecommitdiffstats
path: root/gatchat/gat.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/gat.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/gat.h')
-rw-r--r--gatchat/gat.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/gatchat/gat.h b/gatchat/gat.h
new file mode 100644
index 00000000..6696e7d4
--- /dev/null
+++ b/gatchat/gat.h
@@ -0,0 +1,36 @@
+/*
+ *
+ * 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 __GAT_H
+#define __GAT_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef void (*GAtDisconnectFunc)(gpointer user_data);
+typedef void (*GAtDebugFunc)(const char *str, gpointer user_data);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __GAT_H */