2 * tel-plugin-packetservice
4 * Copyright (c) 2012 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: DongHoo Park <donghoo.park@samsung.com>
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
24 #include <core_object.h>
30 const char *ps_log_tag_name[PS_SUBS_MAX] = {
31 [PS_SUBS_PRIMARY] = "PS/SUBS-0",
32 [PS_SUBS_SECONDARY] = "PS/SUBS-1",
35 const gchar *ps_log_get_tag_by_modem(ps_modem_t *modem)
37 ps_subs_type subs_type = modem ? modem->subs_type : PS_SUBS_PRIMARY;
38 return ps_log_tag_name[subs_type];
41 const gchar *ps_log_get_tag_by_service(ps_service_t *service)
43 ps_subs_type subs_type = service ? service->subs_type : PS_SUBS_PRIMARY;
44 return ps_log_tag_name[subs_type];
47 const gchar *ps_log_get_tag_by_context(ps_context_t *context)
49 ps_subs_type subs_type = context ? context->subs_type : PS_SUBS_PRIMARY;
50 return ps_log_tag_name[subs_type];