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>
35 static TReturn send_umts_msg(CoreObject *co_sms, UserRequest *ur)
37 return TCORE_RETURN_ENOSYS;
40 static TReturn read_msg(CoreObject *co_sms, UserRequest *ur)
42 return TCORE_RETURN_ENOSYS;
45 static TReturn save_msg(CoreObject *co_sms, UserRequest *ur)
47 return TCORE_RETURN_ENOSYS;
50 static TReturn delete_msg(CoreObject *co_sms, UserRequest *ur)
52 return TCORE_RETURN_ENOSYS;
55 static TReturn get_storedMsgCnt(CoreObject *co_sms, UserRequest *ur)
57 return TCORE_RETURN_ENOSYS;
60 static TReturn get_sca(CoreObject *co_sms, UserRequest *ur)
62 return TCORE_RETURN_ENOSYS;
65 static TReturn set_sca(CoreObject *co_sms, UserRequest *ur)
67 return TCORE_RETURN_ENOSYS;
70 static TReturn get_cb_config(CoreObject *co_sms, UserRequest *ur)
72 return TCORE_RETURN_ENOSYS;
75 static TReturn set_cb_config(CoreObject *co_sms, UserRequest *ur)
77 return TCORE_RETURN_ENOSYS;
80 static TReturn set_mem_status(CoreObject *co_sms, UserRequest *ur)
82 return TCORE_RETURN_ENOSYS;
85 static TReturn get_pref_brearer(CoreObject *co_sms, UserRequest *ur)
87 return TCORE_RETURN_ENOSYS;
90 static TReturn set_pref_brearer(CoreObject *co_sms, UserRequest *ur)
92 return TCORE_RETURN_ENOSYS;
95 static TReturn set_delivery_report(CoreObject *co_sms, UserRequest *ur)
97 return TCORE_RETURN_ENOSYS;
100 static TReturn set_msg_status(CoreObject *co_sms, UserRequest *ur)
102 return TCORE_RETURN_ENOSYS;
105 static TReturn get_sms_params(CoreObject *co_sms, UserRequest *ur)
107 return TCORE_RETURN_ENOSYS;
110 static TReturn set_sms_params(CoreObject *co_sms, UserRequest *ur)
112 return TCORE_RETURN_ENOSYS;
115 static TReturn get_paramcnt(CoreObject *co_sms, UserRequest *ur)
117 return TCORE_RETURN_ENOSYS;
120 static TReturn send_cdma_msg(CoreObject *co_sms, UserRequest *ur)
122 return TCORE_RETURN_ENOSYS;
125 static struct tcore_sms_operations sms_ops = {
126 .send_umts_msg = send_umts_msg,
127 .read_msg = read_msg,
128 .save_msg = save_msg,
129 .delete_msg = delete_msg,
130 .get_storedMsgCnt = get_storedMsgCnt,
133 .get_cb_config = get_cb_config,
134 .set_cb_config = set_cb_config,
135 .set_mem_status = set_mem_status,
136 .get_pref_brearer = get_pref_brearer,
137 .set_pref_brearer = set_pref_brearer,
138 .set_delivery_report = set_delivery_report,
139 .set_msg_status = set_msg_status,
140 .get_sms_params = get_sms_params,
141 .set_sms_params = set_sms_params,
142 .get_paramcnt = get_paramcnt,
143 .send_cdma_msg = send_cdma_msg,
146 gboolean at_sms_init(TcorePlugin *p)
150 co_sms = tcore_sms_new(p, "umts_sms", &sms_ops, NULL);
157 void at_sms_exit(TcorePlugin *p)
161 co_sms = tcore_plugin_ref_core_object(p, "umts_sms");
165 tcore_sms_free(co_sms);