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.
27 #include <core_object.h>
28 #include <co_network.h>
30 #include "at_network.h"
33 static TReturn search_network(CoreObject *co, UserRequest *ur)
35 return TCORE_RETURN_ENOSYS;
38 static TReturn set_plmn_selection_mode(CoreObject *co, UserRequest *ur)
40 return TCORE_RETURN_ENOSYS;
43 static TReturn get_plmn_selection_mode(CoreObject *co, UserRequest *ur)
45 return TCORE_RETURN_ENOSYS;
48 static TReturn get_serving_network(CoreObject *co, UserRequest *ur)
50 return TCORE_RETURN_ENOSYS;
53 static struct tcore_network_operations network_ops = {
54 .search = search_network,
55 .set_plmn_selection_mode = set_plmn_selection_mode,
56 .get_plmn_selection_mode = get_plmn_selection_mode,
57 .set_service_domain = NULL,
58 .get_service_domain = NULL,
61 .set_preferred_plmn = NULL,
62 .get_preferred_plmn = NULL,
65 .set_power_on_attach = NULL,
66 .get_power_on_attach = NULL,
67 .set_cancel_manual_search = NULL,
68 .get_serving_network = get_serving_network,
73 gboolean at_network_init(TcorePlugin *cp)
78 co = tcore_network_new(cp, &network_ops, NULL);
82 server = tcore_plugin_ref_server(cp);
83 tcore_server_add_template_object(server, co);
88 void at_network_exit(TcorePlugin *cp)
95 co = tcore_plugin_ref_core_object(cp, CORE_OBJECT_TYPE_NETWORK);
99 tcore_object_free(co);