tel-plugin-at_standard: add at standard plugin desc interface
authorCaiwen Zhang <caiwen.zhang@intel.com>
Mon, 26 Nov 2012 16:59:04 +0000 (00:59 +0800)
committerwootak.jung <wootak.jung@samsung.com>
Sun, 24 Mar 2013 06:47:36 +0000 (15:47 +0900)
Change-Id: I8b58cf2cfd977ce3aac42b763e7c3c0a118c77b2

16 files changed:
CMakeLists.txt
include/at_call.h [new file with mode: 0644]
include/at_modem.h [new file with mode: 0644]
include/at_network.h [new file with mode: 0644]
include/at_ps.h [new file with mode: 0644]
include/at_sim.h [new file with mode: 0644]
include/at_sms.h [new file with mode: 0644]
include/at_ss.h [new file with mode: 0644]
src/at_call.c [new file with mode: 0644]
src/at_modem.c [new file with mode: 0644]
src/at_network.c [new file with mode: 0644]
src/at_ps.c [new file with mode: 0644]
src/at_sim.c [new file with mode: 0644]
src/at_sms.c [new file with mode: 0644]
src/at_ss.c [new file with mode: 0644]
src/desc_at.c [new file with mode: 0644]

index e16079f..658a81c 100644 (file)
@@ -26,6 +26,14 @@ MESSAGE(${CMAKE_C_FLAGS})
 MESSAGE(${CMAKE_EXE_LINKER_FLAGS})
 
 SET(SRCS
+       src/desc_at.c
+       src/at_modem.c
+       src/at_network.c
+       src/at_sim.c
+       src/at_call.c
+       src/at_ps.c
+       src/at_sms.c
+       src/at_ss.c
 )
 
 # library build
diff --git a/include/at_call.h b/include/at_call.h
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/include/at_modem.h b/include/at_modem.h
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/include/at_network.h b/include/at_network.h
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/include/at_ps.h b/include/at_ps.h
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/include/at_sim.h b/include/at_sim.h
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/include/at_sms.h b/include/at_sms.h
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/include/at_ss.h b/include/at_ss.h
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/src/at_call.c b/src/at_call.c
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/src/at_modem.c b/src/at_modem.c
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/src/at_network.c b/src/at_network.c
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/src/at_ps.c b/src/at_ps.c
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/src/at_sim.c b/src/at_sim.c
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/src/at_sms.c b/src/at_sms.c
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/src/at_ss.c b/src/at_ss.c
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/src/desc_at.c b/src/desc_at.c
new file mode 100644 (file)
index 0000000..b937080
--- /dev/null
@@ -0,0 +1,62 @@
+/*
+ * tel-plugin-at_standard
+ *
+ * Copyright (c) 2012 Intel Corporation. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <ctype.h>
+#include <string.h>
+#include <glib.h>
+
+#include <tcore.h>
+#include <plugin.h>
+#include <hal.h>
+#include <server.h>
+
+static gboolean on_load()
+{
+       dbg("i'm load!");
+
+       return TRUE;
+}
+
+static gboolean on_init(TcorePlugin *p)
+{
+       if (!p)
+               return FALSE;
+
+       dbg("i'm init!");
+
+       return TRUE;
+}
+
+static void on_unload(TcorePlugin *p)
+{
+       if (!p)
+               return;
+
+       dbg("i'm unload");
+}
+
+struct tcore_plugin_define_desc plugin_define_desc = {
+       .name = "AT",
+       .priority = TCORE_PLUGIN_PRIORITY_HIGH + 1,
+       .version = 1,
+       .load = on_load,
+       .init = on_init,
+       .unload = on_unload
+};