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.
26 #include <core_object.h>
29 #include <co_network.h>
33 #include "user_request.h"
35 #include "at_network.h"
38 static TReturn search_network(CoreObject *co, UserRequest *ur)
40 return TCORE_RETURN_ENOSYS;
43 static TReturn set_plmn_selection_mode(CoreObject *co, UserRequest *ur)
45 return TCORE_RETURN_ENOSYS;
48 static TReturn get_plmn_selection_mode(CoreObject *co, UserRequest *ur)
50 return TCORE_RETURN_ENOSYS;
53 static TReturn get_serving_network(CoreObject *co, UserRequest *ur)
55 return TCORE_RETURN_ENOSYS;
58 static struct tcore_network_operations network_ops = {
59 .search = search_network,
60 .set_plmn_selection_mode = set_plmn_selection_mode,
61 .get_plmn_selection_mode = get_plmn_selection_mode,
62 .set_service_domain = NULL,
63 .get_service_domain = NULL,
66 .set_preferred_plmn = NULL,
67 .get_preferred_plmn = NULL,
70 .set_power_on_attach = NULL,
71 .get_power_on_attach = NULL,
72 .set_cancel_manual_search = NULL,
73 .get_serving_network = get_serving_network,
78 gboolean at_network_init(TcorePlugin *plugin)
82 co = tcore_network_new(plugin, "umts_network", &network_ops, NULL);
89 void at_network_exit(TcorePlugin *plugin)
96 co = tcore_plugin_ref_core_object(plugin, "umts_network");
100 tcore_network_free(co);