diff options
author | Chinh Tran <chinht@codeaurora.org> | 2011-01-28 16:53:08 -0800 |
---|---|---|
committer | Niranjan Pendharkar <npendhar@codeaurora.org> | 2011-02-18 17:43:25 -0800 |
commit | 38af2cb01b5928ad0cb3a5ed6ab8b694172d6f2e (patch) | |
tree | 546ccad58eeb997c11eea5b6319d128fb2eae1ec /include | |
parent | d6f024d0e13b993ca1841f5518c4983f1402510e (diff) | |
download | android_external_connectivity-38af2cb01b5928ad0cb3a5ed6ab8b694172d6f2e.tar.gz android_external_connectivity-38af2cb01b5928ad0cb3a5ed6ab8b694172d6f2e.tar.bz2 android_external_connectivity-38af2cb01b5928ad0cb3a5ed6ab8b694172d6f2e.zip |
external/connectivity: Add target file descriptor
Specify which target the request and message are from using target
file descriptor.
Added commands to process dormancy change, default network
Reference CnE change to handle target file descriptor
Change-Id: Ic85083625e32c80946b7f42b7cb41b1c51e05398
Diffstat (limited to 'include')
-rwxr-xr-x[-rw-r--r--] | include/cne/cne.h | 54 |
1 files changed, 49 insertions, 5 deletions
diff --git a/include/cne/cne.h b/include/cne/cne.h index cd63cad..e58e745 100644..100755 --- a/include/cne/cne.h +++ b/include/cne/cne.h @@ -32,7 +32,7 @@ -----------------------------------------------------------------------------*/ -/* Copyright (c) 2010, Code Aurora Forum. All rights reserved. +/* Copyright (c) 2010, 2011 Code Aurora Forum. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -132,10 +132,17 @@ typedef enum CNE_NOTIFY_TIMER_EXPIRED_CMD, CNE_REQUEST_START_FMC_CMD, - CNE_REQUEST_STOP_FMC_CMD - /* Add other commands here, note these should match with the ones in the - * java layer. + CNE_REQUEST_STOP_FMC_CMD, + CNE_REQUEST_UPDATE_WWAN_DORMANCY_INFO_CMD, + CNE_REQUEST_UPDATE_DEFAULT_NETWORK_INFO_CMD, + CNE_NOTIFY_SOCKET_CLOSED_CMD, + /** + Add other commands here, note these should match with the ones in the + java layer. + + CNE_REQUEST_VENDOR_CMD should always be last cmd in this enum */ + CNE_REQUEST_VENDOR_CMD } cne_cmd_enum_type; @@ -165,7 +172,11 @@ typedef enum CNE_REQUEST_START_SCAN_WLAN_MSG, CNE_NOTIFY_INFLIGHT_STATUS_MSG, CNE_NOTIFY_FMC_STATUS_MSG, - CNE_NOTIFY_HOST_ROUTING_IP_MSG + CNE_NOTIFY_HOST_ROUTING_IP_MSG, + /** + CNE_NOTIFY_VENDOR_MSG should always be last msg in this enum + */ + CNE_NOTIFY_VENDOR_MSG } cne_msg_enum_type; @@ -260,6 +271,39 @@ typedef enum }cne_rat_type; /** + * represents battery status, values should match + * BatteryManager.java + */ +typedef enum +{ + CNE_BATTERY_STATUS_UNKNOWN = 1, + CNE_BATTERY_STATUS_CHARGING, + CNE_BATTERY_STATUS_DISCHARGING, + CNE_BATTERY_STATUS_NOT_CHARGING, + CNE_BATTERY_STATUS_FULL +} cne_battery_status; + +/** + * represets battery level + */ +typedef enum +{ + CNE_BATTERY_LEVEL_MIN = 0, + CNE_BATTERY_LEVEL_MAX = 100 +} cne_battery_level; + +/** + * represets charger type, values should match + * BatteryManager.java + */ +typedef enum +{ + CNE_BATTERY_PLUGGED_NONE, + CNE_BATTERY_PLUGGED_AC, + CNE_BATTERY_PLUGGED_USB +} cne_battery_charger_type; + +/** This is a type representing the list of possible subRATs */ typedef enum |