2 * tel-plugin-at_standard
4 * Copyright (c) 2012 Intel Corporation. All rights reserved.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
29 #include <core_object.h>
34 static TReturn send_umts_msg(CoreObject *co_sms, UserRequest *ur)
36 return TCORE_RETURN_ENOSYS;
39 static TReturn read_msg(CoreObject *co_sms, UserRequest *ur)
41 return TCORE_RETURN_ENOSYS;
44 static TReturn save_msg(CoreObject *co_sms, UserRequest *ur)
46 return TCORE_RETURN_ENOSYS;
49 static TReturn delete_msg(CoreObject *co_sms, UserRequest *ur)
51 return TCORE_RETURN_ENOSYS;
54 static TReturn get_stored_msg_cnt(CoreObject *co_sms, UserRequest *ur)
56 return TCORE_RETURN_ENOSYS;
59 static TReturn get_sca(CoreObject *co_sms, UserRequest *ur)
61 return TCORE_RETURN_ENOSYS;
64 static TReturn set_sca(CoreObject *co_sms, UserRequest *ur)
66 return TCORE_RETURN_ENOSYS;
69 static TReturn get_cb_config(CoreObject *co_sms, UserRequest *ur)
71 return TCORE_RETURN_ENOSYS;
74 static TReturn set_cb_config(CoreObject *co_sms, UserRequest *ur)
76 return TCORE_RETURN_ENOSYS;
79 static TReturn set_mem_status(CoreObject *co_sms, UserRequest *ur)
81 return TCORE_RETURN_ENOSYS;
84 static TReturn get_pref_brearer(CoreObject *co_sms, UserRequest *ur)
86 return TCORE_RETURN_ENOSYS;
89 static TReturn set_pref_brearer(CoreObject *co_sms, UserRequest *ur)
91 return TCORE_RETURN_ENOSYS;
94 static TReturn set_delivery_report(CoreObject *co_sms, UserRequest *ur)
96 return TCORE_RETURN_ENOSYS;
99 static TReturn set_msg_status(CoreObject *co_sms, UserRequest *ur)
101 return TCORE_RETURN_ENOSYS;
104 static TReturn get_sms_params(CoreObject *co_sms, UserRequest *ur)
106 return TCORE_RETURN_ENOSYS;
109 static TReturn set_sms_params(CoreObject *co_sms, UserRequest *ur)
111 return TCORE_RETURN_ENOSYS;
114 static TReturn get_paramcnt(CoreObject *co_sms, UserRequest *ur)
116 return TCORE_RETURN_ENOSYS;
119 static TReturn send_cdma_msg(CoreObject *co_sms, UserRequest *ur)
121 return TCORE_RETURN_ENOSYS;
124 static struct tcore_sms_operations sms_ops = {
125 .send_umts_msg = send_umts_msg,
126 .read_msg = read_msg,
127 .save_msg = save_msg,
128 .delete_msg = delete_msg,
129 .get_stored_msg_cnt = get_stored_msg_cnt,
132 .get_cb_config = get_cb_config,
133 .set_cb_config = set_cb_config,
134 .set_mem_status = set_mem_status,
135 .get_pref_brearer = get_pref_brearer,
136 .set_pref_brearer = set_pref_brearer,
137 .set_delivery_report = set_delivery_report,
138 .set_msg_status = set_msg_status,
139 .get_sms_params = get_sms_params,
140 .set_sms_params = set_sms_params,
141 .get_paramcnt = get_paramcnt,
142 .send_cdma_msg = send_cdma_msg,
145 gboolean at_sms_init(TcorePlugin *cp)
150 co = tcore_sms_new(cp, &sms_ops, NULL);
154 server = tcore_plugin_ref_server(cp);
155 tcore_server_add_template_object(server, co);
160 void at_sms_exit(TcorePlugin *cp)
167 co = tcore_plugin_ref_core_object(cp, CORE_OBJECT_TYPE_SMS);
171 tcore_object_free(co);