Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: src/service.c

Issue 6294001: Added support for GSM in the modemmgr plugin. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/flimflam.git@master
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « plugins/modemmgr.c ('k') | test/mm.sh » ('j') | test/mm.sh » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * 2 *
3 * Connection Manager 3 * Connection Manager
4 * 4 *
5 * Copyright (C) 2007-2009 Intel Corporation. All rights reserved. 5 * Copyright (C) 2007-2009 Intel Corporation. All rights reserved.
6 * 6 *
7 * This program is free software; you can redistribute it and/or modify 7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as 8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation. 9 * published by the Free Software Foundation.
10 * 10 *
(...skipping 1655 matching lines...) Expand 10 before | Expand all | Expand 10 after
1666 * @network_technology: e.g., GPRS, EDGE, HSPA, 1xRTT, EVDO, etc. 1666 * @network_technology: e.g., GPRS, EDGE, HSPA, 1xRTT, EVDO, etc.
1667 * @roaming_state: e.g., Home, Roaming 1667 * @roaming_state: e.g., Home, Roaming
1668 * 1668 *
1669 * Set network technology and roaming status information for the service. 1669 * Set network technology and roaming status information for the service.
1670 */ 1670 */
1671 void __connman_service_set_registration_info( 1671 void __connman_service_set_registration_info(
1672 struct connman_service *service, 1672 struct connman_service *service,
1673 enum connman_network_cellular_technology network_technology, 1673 enum connman_network_cellular_technology network_technology,
1674 enum connman_network_cellular_roaming_state roaming_state) 1674 enum connman_network_cellular_roaming_state roaming_state)
1675 { 1675 {
1676 » enum connman_network_cellular_technology otech = 1676 » const char *tech_str;
1677 » » » service->cellular.network_technology; 1677 » const char *roam_str;
1678 » enum connman_network_cellular_roaming_state oroam =
1679 » » » service->cellular.roaming_state;
1680 » const char *tech_str = network_technology2string(network_technology);
1681 » const char *roam_str = roaming_state2string(roaming_state);
1682 1678
1683 » service->cellular.network_technology = network_technology; 1679 » if (network_technology != CONNMAN_NETWORK_TECHNOLOGY_UNKNOWN) {
Jason Glasgow 2011/01/13 07:11:08 When is network technology ever C_N_TECH..._UNKNOW
Eric Shienbrood 2011/01/13 07:23:33 Just initially. It really means "not yet known". I
1684 » service->cellular.roaming_state = roaming_state; 1680 » » tech_str = network_technology2string(network_technology);
1685 » if (otech != network_technology && tech_str != NULL) { 1681 » » if (service->cellular.network_technology != network_technology & &
1686 » » (void) connman_dbus_send_property_changed_variant( 1682 » » tech_str != NULL) {
1687 » » » » service->path, 1683 » » » (void) connman_dbus_send_property_changed_variant(
1688 » » » » CONNMAN_SERVICE_INTERFACE, 1684 » » » » » service->path,
1689 » » » » "Cellular.NetworkTechnology", 1685 » » » » » CONNMAN_SERVICE_INTERFACE,
1690 » » » » DBUS_TYPE_STRING, &tech_str); 1686 » » » » » "Cellular.NetworkTechnology",
1687 » » » » » DBUS_TYPE_STRING, &tech_str);
1688 » » }
1689 » » service->cellular.network_technology = network_technology;
1691 } 1690 }
1692 » if (oroam != roaming_state && roam_str != NULL) { 1691 » if (roaming_state != CONNMAN_NETWORK_ROAMING_STATE_UNKNOWN) {
1693 » » (void) connman_dbus_send_property_changed_variant( 1692 » » roam_str = roaming_state2string(roaming_state);
1694 » » » » service->path, 1693 » » if (service->cellular.roaming_state != roaming_state &&
1695 » » » » CONNMAN_SERVICE_INTERFACE, 1694 » » roam_str != NULL) {
1696 » » » » "Cellular.RoamingState", 1695 » » » (void) connman_dbus_send_property_changed_variant(
1697 » » » » DBUS_TYPE_STRING, &roam_str); 1696 » » » » » service->path,
1697 » » » » » CONNMAN_SERVICE_INTERFACE,
1698 » » » » » "Cellular.RoamingState",
1699 » » » » » DBUS_TYPE_STRING, &roam_str);
1700 » » }
1701 » » service->cellular.roaming_state = roaming_state;
1698 } 1702 }
1699 } 1703 }
1700 1704
1701 void connman_service_set_connectivity_state(struct connman_service *service, 1705 void connman_service_set_connectivity_state(struct connman_service *service,
1702 enum connman_service_connectivity_state connectivity) 1706 enum connman_service_connectivity_state connectivity)
1703 { 1707 {
1704 enum connman_service_connectivity_state 1708 enum connman_service_connectivity_state
1705 oconnectivity = service->connectivity_state; 1709 oconnectivity = service->connectivity_state;
1706 const char *state_str = connectivity_state2string(connectivity); 1710 const char *state_str = connectivity_state2string(connectivity);
1707 1711
(...skipping 2381 matching lines...) Expand 10 before | Expand all | Expand 10 after
4089 service_list = NULL; 4093 service_list = NULL;
4090 4094
4091 g_hash_table_destroy(service_hash); 4095 g_hash_table_destroy(service_hash);
4092 service_hash = NULL; 4096 service_hash = NULL;
4093 4097
4094 connman_storage_unregister(&service_storage); 4098 connman_storage_unregister(&service_storage);
4095 connman_notifier_unregister(&service_notifier); 4099 connman_notifier_unregister(&service_notifier);
4096 4100
4097 dbus_connection_unref(connection); 4101 dbus_connection_unref(connection);
4098 } 4102 }
OLDNEW
« no previous file with comments | « plugins/modemmgr.c ('k') | test/mm.sh » ('j') | test/mm.sh » ('J')

Powered by Google App Engine
This is Rietveld 408576698