0b44715797b32a31c3fc41e3a530c0b2271fdb73
[framework/telephony/tel-plugin-socket_communicator.git] / plugin / src / module_req.h
1 /*
2  * tel-plugin-socket-communicator
3  *
4  * Copyright (c) 2012 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: Ja-young Gu <jygu@samsung.com>
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  */
20
21 #ifndef __MODULE_REQ_H__
22 #define __MODULE_REQ_H__
23
24 #include <stdio.h>
25 #include <string.h>
26 #include <stdlib.h>
27 #include <errno.h>
28 #include <glib-object.h>
29
30 #include <tcore.h>
31 #include <server.h>
32 #include <plugin.h>
33 #include <hal.h>
34 #include <communicator.h>
35 #include <queue.h>
36 #include <user_request.h>
37 #include <util.h>
38
39 #include "sipc.h"
40 #include "tapi_common.h"
41
42 __BEGIN_DECLS
43
44 struct custom_data {
45         Server*                         server;
46         TcorePlugin*    plugin;
47         Communicator*       comm;
48         sipc_server_t*      sk_server;
49 };
50
51 gboolean scomm_service_reqeust_sim(unsigned int ch_id, Communicator *c, TcorePlugin *plugin,
52                 tapi_service_command_e cmd, gchar *data, void **outparam);
53 gboolean scomm_service_response_sim(Communicator *comm, UserRequest *ur, enum tcore_response_command command,
54                 unsigned int data_len, const void *data);
55 gboolean scomm_service_notification_sim(Communicator *comm, CoreObject *source, enum tcore_notification_command command,
56                 unsigned int data_len, const void *data);
57
58 gboolean scomm_service_reqeust_sap(unsigned int ch_id, Communicator *c, TcorePlugin *plugin,
59                 tapi_service_command_e cmd, gchar *data, void **outparam);
60 gboolean scomm_service_response_sap(Communicator *comm, UserRequest *ur, enum tcore_response_command command,
61                 unsigned int data_len, const void *data);
62 gboolean scomm_service_notification_sap(Communicator *comm, CoreObject *source, enum tcore_notification_command command,
63                 unsigned int data_len, const void *data);
64
65 gboolean scomm_service_reqeust_pb(unsigned int ch_id, Communicator *c, TcorePlugin *plugin,
66                 tapi_service_command_e cmd, gchar *data, void **outparam);
67 gboolean scomm_service_response_pb(Communicator *comm, UserRequest *ur, enum tcore_response_command command,
68                 unsigned int data_len, const void *data);
69 gboolean scomm_service_notification_pb(Communicator *comm, CoreObject *source, enum tcore_notification_command command,
70                 unsigned int data_len, const void *data);
71
72 gboolean scomm_service_reqeust_call(unsigned int ch_id, Communicator *c, TcorePlugin *plugin,
73                 tapi_service_command_e cmd, gchar *data, void **outparam);
74 gboolean scomm_service_response_call(Communicator *comm, UserRequest *ur, enum tcore_response_command command,
75                 unsigned int data_len, const void *data);
76 gboolean scomm_service_notification_call(Communicator *comm, CoreObject *source, enum tcore_notification_command command,
77                 unsigned int data_len, const void *data);
78
79 gboolean scomm_service_request_network(unsigned int ch_id, Communicator *c, TcorePlugin *plugin,
80                 tapi_service_command_e cmd, gchar *data, void **outparam);
81 gboolean scomm_service_response_network(Communicator *comm, UserRequest *ur, enum tcore_response_command command,
82                 unsigned int data_len, const void *data);
83 gboolean scomm_service_notification_network(Communicator *comm, CoreObject *source, enum tcore_notification_command command,
84                 unsigned int data_len, const void *data);
85
86 gboolean scomm_service_request_ps(unsigned int ch_id, Communicator *c, TcorePlugin *plugin,
87                 tapi_service_command_e cmd, gchar *data, void **outparam);
88 gboolean scomm_service_response_ps(Communicator *comm, UserRequest *ur, enum tcore_response_command command,
89                 unsigned int data_len, const void *data);
90 gboolean scomm_service_notification_ps(Communicator *comm, CoreObject *source, enum tcore_notification_command command,
91                 unsigned int data_len, const void *data);
92
93 gboolean scomm_service_request_sms(unsigned int ch_id, Communicator *c, TcorePlugin *plugin,
94                 tapi_service_command_e cmd, gchar *data, void **outparam);
95 gboolean scomm_service_response_sms(Communicator *comm, UserRequest *ur, enum tcore_response_command command,
96                 unsigned int data_len, const void *data);
97 gboolean scomm_service_notification_sms(Communicator *comm, CoreObject *source, enum tcore_notification_command command,
98                 unsigned int data_len, const void *data);
99
100 gboolean scomm_service_request_custom(unsigned int ch_id, Communicator *c, TcorePlugin *plugin,
101                 tapi_service_command_e cmd, gchar *data, void **outparam);
102 gboolean scomm_service_response_custom(Communicator *comm, UserRequest *ur, enum tcore_response_command command,
103                 unsigned int data_len, const void *data);
104 gboolean scomm_service_notification_custom(Communicator *comm, CoreObject *source, enum tcore_notification_command command,
105                 unsigned int data_len, const void *data);
106
107 __END_DECLS
108
109 #endif