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.
22 #include <core_object.h>
24 #include <co_phonebook.h>
26 #include "at_phonebook.h"
28 static TReturn at_get_count(CoreObject *co, UserRequest *ur)
30 return TCORE_RETURN_ENOSYS;
33 static TReturn at_get_info(CoreObject *co, UserRequest *ur)
35 return TCORE_RETURN_ENOSYS;
38 static TReturn at_get_usim_info(CoreObject *co, UserRequest *ur)
40 return TCORE_RETURN_ENOSYS;
43 static TReturn at_read_record(CoreObject *co, UserRequest *ur)
45 return TCORE_RETURN_ENOSYS;
48 static TReturn at_update_record(CoreObject *co, UserRequest *ur)
50 return TCORE_RETURN_ENOSYS;
53 static TReturn at_delete_record(CoreObject *co, UserRequest *ur)
55 return TCORE_RETURN_ENOSYS;
58 static struct tcore_phonebook_operations phonebook_ops = {
59 .get_count = at_get_count,
60 .get_info = at_get_info,
61 .get_usim_info = at_get_usim_info,
62 .read_record = at_read_record,
63 .update_record = at_update_record,
64 .delete_record = at_delete_record,
67 gboolean at_phonebook_init(TcorePlugin *cp)
71 co = tcore_phonebook_new(cp, "phonebook", &phonebook_ops, NULL);
78 void at_phonebook_exit(TcorePlugin *cp)
82 co = tcore_plugin_ref_core_object(cp, "phonebook");
86 tcore_phonebook_free(co);