API header and Callback header to use KMS interface. More...
Enumerations | |
enum | call_act_e { CALL_ACT_SETUP = 0, CALL_ACT_ACCEPT, CALL_ACT_RELEASE, CALL_ACT_NB } |
Type of call action. More... | |
enum | io_type_e { IO_TYPE_ADC = 0, IO_TYPE_COUNTER, IO_TYPE_DAC, IO_TYPE_DIGITAL, IO_TYPE_TEMPERATURE, IO_TYPE_APC, IO_TYPE_NB } |
Type of the I/O. More... | |
enum | io_way_e { IO_WAY_BOTH = 0, IO_WAY_DOWN, IO_WAY_UP } |
Threshold edge/passing mode in inputtrig. More... | |
enum | area_way_e { AREA_WAY_BOTH = 0, AREA_WAY_IN, AREA_WAY_OUT } |
in/out detection mode in areatrig More... | |
enum | report_e { REPORT_KO = 0, REPORT_OK, REPORT_NB } |
OK/KO. More... | |
enum | system_act_e { SYSTEM_ACT_DISCONNECT = 0, SYSTEM_ACT_HANDOVER, SYSTEM_ACT_POWER_OFF, SYSTEM_ACT_REBOOT, SYSTEM_ACT_RELOAD, SYSTEM_ACT_STANDBY, SYSTEM_ACT_SLEEP, SYSTEM_ACT_WAKEUP, SYSTEM_ACT_NB } |
Specify the kind of command. More... | |
enum | bearer_class_e { BEARER_CLASS_NONE = 0, BEARER_CLASS_ETHERNET, BEARER_CLASS_GPRS, BEARER_CLASS_WLAN } |
specify the class of a bearer More... | |
Functions | |
vos_res_t | app_api_connect (u32 in_u32_app_id, char *in_pc_local_login, char *in_pc_local_password, char *in_pc_remote_ip_addr, char *in_pc_remote_login, char *in_pc_remote_password) |
This function is used to connect an application to a Knet Agent. | |
vos_res_t | app_api_disconnect (void) |
This function is used to disconnect an application from a Knet Agent. | |
vos_res_t | app_api_req_position (u32 in_u32_period, char *in_pc_name) |
This message requests the current GPS position. | |
vos_res_t | app_api_req_areatrig (u32 in_u32_id, s32 in_s32_lat, s32 in_s32_long, u32 in_u32_radius, area_way_e in_e_way, char *in_pc_name) |
This message programs an area detection (geofencing). | |
vos_res_t | app_api_req_call (char *in_pc_ident, call_act_e in_e_call_act) |
This command performs call request & action. | |
vos_res_t | app_api_req_change_gsm_volume (u32 in_u32_vol) |
This command change the volume of GSM module output. | |
vos_res_t | app_api_req_change_tone_volume (u32 in_u32_vol) |
This command change the volume of the tone of the GSM module. | |
vos_res_t | app_api_req_sms (char *in_pc_ident, bool in_b_binary_sms, char *in_pc_msg) |
This command sends a SMS to a remote phone. | |
vos_res_t | app_api_req_smstrig (char *in_pc_name) |
This message programs SMS trigger. | |
vos_res_t | app_api_req_calltrig (char *in_pc_name) |
This message programs GSM call event trigger. | |
vos_res_t | app_api_req_gsmtrig (char *in_pc_name) |
This message programs GSM network event trigger. | |
vos_res_t | app_api_req_rssi (u32 in_u32_period, char *in_pc_name) |
This message requests the current rssi level. | |
vos_res_t | app_api_req_input (io_type_e in_e_type, u32 in_u32_id, u32 in_u32_period, char *in_pc_name) |
This message provides a command to an input. | |
vos_res_t | app_api_req_inputtrig (io_type_e in_e_type, u32 in_u32_id, io_way_e in_e_way, u32 in_u32_value, u32 in_u32_hysteresis, char *in_pc_name) |
This message programs an input threshold trigger. | |
vos_res_t | app_api_req_output (io_type_e in_e_type, u32 in_u32_id, u32 in_u32_value) |
This message commands to output an analog or digital value. | |
vos_res_t | app_api_req_pulse (u32 in_u32_id, u32 in_u32_value, u32 in_u32_delay, u32 in_u32_period, char *in_pc_name) |
This message commands a pulse mode on a digital output. | |
vos_res_t | app_api_req_stats (bool in_b_local_version, u32 in_u32_period, char *in_pc_name) |
This command allows to periodically receive statistic information. | |
vos_res_t | app_api_req_statstrig (char *in_pc_name) |
This command allows to receive stats information only when an (dis)connect event occurs in WANESY network. | |
vos_res_t | app_api_req_version (bool in_b_local_version) |
This message requests the version of knet agent. | |
vos_res_t | app_api_req_system (bool in_b_local_version, system_act_e in_e_act, bearer_class_e in_e_class) |
This service allows to manually perform system operations. | |
vos_res_t | app_api_req_dota (char *in_pc_ref, bool in_b_install_now) |
This message permits to upgrade any file in the device or a set of files. | |
vos_res_t | app_api_req_wakeup (u8 in_u8_hh, u8 in_u8_mm) |
This service program an RTC wakeup. | |
vos_res_t | app_api_req_appping (void) |
This message signals to knet agent that application is alive. | |
vos_res_t | app_cb_connect_ind (bool in_b_is_mmi_device, bool in_b_connected_to_local, bool in_b_connected) |
This callback indicates the application is connected or not to the Knet Agent (start point to performs M2M requests). | |
vos_res_t | app_cb_ind_position (char *in_pc_date, u32 in_u32_fix, s32 in_s32_lat, s32 in_s32_long, s32 in_s32_alt, u32 in_u32_course, u32 in_u32_speed, u32 in_u32_nsat, u32 in_u32_hdop) |
KMS position message received. | |
vos_res_t | app_cb_ind_areatrig (char *in_pc_date, u32 in_u32_id, s32 in_s32_lat, s32 in_s32_long, u32 in_u32_course, u32 in_u32_speed, u32 in_u32_radius, area_way_e in_e_way) |
KMS areatrig message received. | |
vos_res_t | app_cb_ind_sms (char *in_pc_ident, report_e in_e_report) |
KMS SMS message received. | |
vos_res_t | app_cb_ind_smstrig (char *in_pc_ident, char *in_pc_msg) |
KMS SMSTRIG message received. | |
vos_res_t | app_cb_ind_gsmtrig (report_e in_e_network) |
KMS GSMTRIG message received. | |
vos_res_t | app_cb_ind_calltrig (char *in_pc_status, char *in_pc_ident, char *in_pc_date) |
KMS CALLTRIG message received. | |
vos_res_t | app_cb_ind_rssi (u32 in_u32_value) |
KMS RSSI message received. | |
vos_res_t | app_cb_ind_input (bool in_b_is_mmi_system, io_type_e in_e_type, u32 in_u32_id, u32 in_u32_value) |
KMS INPUT message received. | |
vos_res_t | app_cb_ind_inputtrig (bool in_b_is_mmi_system, io_type_e in_e_type, u32 in_u32_id, u32 in_u32_value, io_way_e in_e_way) |
KMS INPUTTRIG message received. | |
vos_res_t | app_cb_ind_stats (bearer_class_e in_e_class, char *in_pc_status, char *in_pc_start, char *in_pc_stop, u32 in_u32_tx, u32 in_u32_rx) |
KMS STATS meassage received. | |
vos_res_t | app_cb_ind_statstrig (bearer_class_e in_e_class, char *in_pc_status, char *in_pc_start, char *in_pc_stop, u32 in_u32_tx, u32 in_u32_rx) |
KMS STATS meassage received. | |
vos_res_t | app_cb_ind_stats_system (u32 in_u32_flash, u32 in_u32_ram, u32 in_u32_cpu) |
KMS STATS meassage received. | |
vos_res_t | app_cb_ind_version (char *in_pc_revision) |
KMS VERSION message received. | |
vos_res_t | app_cb_ind_system (bool in_b_is_mmi_system, bool in_b_is_local_agent, system_act_e in_e_act, bearer_class_e in_e_class, report_e in_e_report) |
KMS SYSTEM message received. | |
vos_res_t | app_cb_ind_dota (char *in_pc_report) |
KMS DOTA message received. | |
vos_res_t | app_cb_ind_stopreq (char *in_pc_cause) |
KMS STOPREQ message received. | |
gboolean | ping_knetd () |
This function is call regularly by gtk_main() to say to local agent "I'm still alive!". | |
gboolean | refresh_text () |
This function is call regularly by gtk_main() to refresh display. | |
void | on_decrement_pressed (GtkButton *button, gpointer user_data) |
Called when 'volume increase' or 'backlight increase' buttons are pressed. | |
void | on_increment_pressed (GtkButton *button, gpointer user_data) |
Called when 'volume decrease' or 'backlight decrease' buttons are pressed. | |
void | on_increment_or_decrement_released (GtkButton *button, gpointer user_data) |
Called whent 'volumes' or 'backlights' buttons are released. | |
void | on_button_connect_clicked (GtkButton *button, gpointer user_data) |
Called when 'connect' button is pressed. |
API header and Callback header to use KMS interface.
This file contains all functions to use KMS interface
enum area_way_e |
enum bearer_class_e |
enum call_act_e |
enum io_type_e |
enum io_way_e |
enum report_e |
enum system_act_e |
Specify the kind of command.
system_act_e
vos_res_t app_api_connect | ( | u32 | in_u32_app_id, | |
char * | in_pc_local_login, | |||
char * | in_pc_local_password, | |||
char * | in_pc_remote_ip_addr, | |||
char * | in_pc_remote_login, | |||
char * | in_pc_remote_password | |||
) |
This function is used to connect an application to a Knet Agent.
in_u32_app_id | is the id of this application for Knet agent (values 0 and 255 are not allowed). | |
in_pc_local_login | is the KMS login for local agent. | |
in_pc_local_password | is the KMS password for local agent. | |
in_pc_remote_ip_addr | is IP address of the device. | |
in_pc_remote_login | is the KMS login for local agent. | |
in_pc_remote_password | is the KMS password for local agent. |
Referenced by main().
vos_res_t app_api_req_areatrig | ( | u32 | in_u32_id, | |
s32 | in_s32_lat, | |||
s32 | in_s32_long, | |||
u32 | in_u32_radius, | |||
area_way_e | in_e_way, | |||
char * | in_pc_name | |||
) |
This message programs an area detection (geofencing).
in_u32_id | specify the id of the area. | |
in_s32_lat | is the latitude of the center of the area | |
in_s32_long | is the latitude of the center of the area | |
in_u32_radius | is the radius of the area | |
in_e_way | is the in/out detection mode | |
in_pc_name | is the id of the request used to stop the trigger (Max length is 19 characters) |
vos_res_t app_api_req_call | ( | char * | in_pc_ident, | |
call_act_e | in_e_call_act | |||
) |
This command performs call request & action.
in_pc_ident | gives the phone number of the destination. | |
in_e_call_act | indicates the action to be performed |
Referenced by on_button_connect_clicked().
vos_res_t app_api_req_calltrig | ( | char * | in_pc_name | ) |
This message programs GSM call event trigger.
in_pc_name | is the id of the request used to stop the trigger (Max length is 19 characters) |
Referenced by app_cb_connect_ind(), and app_cb_ind_system().
vos_res_t app_api_req_change_gsm_volume | ( | u32 | in_u32_vol | ) |
This command change the volume of GSM module output.
in_u32_vol | absolute value of volume to setup |
vos_res_t app_api_req_change_tone_volume | ( | u32 | in_u32_vol | ) |
This command change the volume of the tone of the GSM module.
in_u32_vol | absolute value of the volume to setup |
vos_res_t app_api_req_dota | ( | char * | in_pc_ref, | |
bool | in_b_install_now | |||
) |
This message permits to upgrade any file in the device or a set of files.
in_pc_ref | is the absolute full pathname of the upgrade package. | |
in_b_install_now | specify if it is necessary to reboot now or not. |
vos_res_t app_api_req_gsmtrig | ( | char * | in_pc_name | ) |
This message programs GSM network event trigger.
in_pc_name | is the id of the request used to stop the trigger (Max length is 19 characters) |
vos_res_t app_api_req_input | ( | io_type_e | in_e_type, | |
u32 | in_u32_id, | |||
u32 | in_u32_period, | |||
char * | in_pc_name | |||
) |
This message provides a command to an input.
in_e_type | informs the type of the I/O : digital, adc, apc, temperature or counter | |
in_u32_id | is the number of the I/O | |
in_u32_period | specify the period of sending "input" message, in second. 0 means once. | |
in_pc_name | is the id of the request used to stop the trigger (Max length is 19 characters) |
Referenced by app_cb_connect_ind(), and app_cb_ind_system().
vos_res_t app_api_req_inputtrig | ( | io_type_e | in_e_type, | |
u32 | in_u32_id, | |||
io_way_e | in_e_way, | |||
u32 | in_u32_value, | |||
u32 | in_u32_hysteresis, | |||
char * | in_pc_name | |||
) |
This message programs an input threshold trigger.
in_e_type | informs the type of the I/O : digital, adc, apc, temperature. | |
in_u32_id | is the number of the I/O. | |
in_e_way | threshold passing/edge mode | |
in_u32_value | equals to the threshold programming (only for adc & temperature) | |
in_u32_hysteresis | is the value for up and down transition (only for adc & temperature) | |
in_pc_name | is the id of the request used to stop the trigger (Max length is 19 characters) |
Referenced by app_cb_connect_ind(), and app_cb_ind_system().
vos_res_t app_api_req_output | ( | io_type_e | in_e_type, | |
u32 | in_u32_id, | |||
u32 | in_u32_value | |||
) |
This message commands to output an analog or digital value.
in_e_type | informs the type of the I/O : digital or dac. | |
in_u32_id | is the number of the I/O. | |
in_u32_value | is the value to set. |
vos_res_t app_api_req_position | ( | u32 | in_u32_period, | |
char * | in_pc_name | |||
) |
This message requests the current GPS position.
in_u32_period | specify the period of sending a Position message, in second. 0 means once. | |
in_pc_name | is the id of the request used to stop the trigger (Max length is 19 characters) |
Referenced by app_cb_connect_ind(), and app_cb_ind_system().
vos_res_t app_api_req_pulse | ( | u32 | in_u32_id, | |
u32 | in_u32_value, | |||
u32 | in_u32_delay, | |||
u32 | in_u32_period, | |||
char * | in_pc_name | |||
) |
This message commands a pulse mode on a digital output.
in_u32_id | is the number of the I/O. | |
in_u32_value | is the value to set. | |
in_u32_delay | is the duration of the pulse value. | |
in_u32_period | is the period of the pulse, if null, the pulse is done only once. | |
in_pc_name | is the id of the request used to stop the trigger (Max length is 19 characters) |
vos_res_t app_api_req_rssi | ( | u32 | in_u32_period, | |
char * | in_pc_name | |||
) |
This message requests the current rssi level.
in_u32_period | specify the period of sending a RSSI message, in second. 0 means once. | |
in_pc_name | is the id of the request used to stop the trigger (Max length is 19 characters) |
vos_res_t app_api_req_sms | ( | char * | in_pc_ident, | |
bool | in_b_binary_sms, | |||
char * | in_pc_msg | |||
) |
This command sends a SMS to a remote phone.
in_pc_ident | gives the phone number of the destination. | |
in_b_binary_sms | indicates if it is a binary SMS or not. | |
in_pc_msg | provides the SMS body in text format or data part of the PDU hexastring if it is a binary SMS. |
vos_res_t app_api_req_smstrig | ( | char * | in_pc_name | ) |
This message programs SMS trigger.
in_pc_name | is the id of the request used to stop the trigger (Max length is 19 characters) |
vos_res_t app_api_req_stats | ( | bool | in_b_local_version, | |
u32 | in_u32_period, | |||
char * | in_pc_name | |||
) |
This command allows to periodically receive statistic information.
in_b_local_version | is TRUE if we want to speak to local agent or FALSE to remote agent. | |
in_u32_period | specify the period of sending STATS message, in second. 0 eans once. | |
in_pc_name | is the id of the request used to stop the trigger (Max length is 19 characters) |
vos_res_t app_api_req_statstrig | ( | char * | in_pc_name | ) |
This command allows to receive stats information only when an (dis)connect event occurs in WANESY network.
in_pc_name | is the id of the request used to stop the trigger (Max length is 19 characters) |
Referenced by app_cb_connect_ind(), and app_cb_ind_system().
vos_res_t app_api_req_system | ( | bool | in_b_local_version, | |
system_act_e | in_e_act, | |||
bearer_class_e | in_e_class | |||
) |
This service allows to manually perform system operations.
in_b_local_version | is TRUE if we want to speak to local agent or FALSE to remote agent. | |
in_e_act | specify the kind of command ( disconnect, handover, reboot, poweroff, reload ) | |
in_e_class | specify the class of new bearer (gprs, ethernet, wlan) for handover or disconnect, "none" for other commands |
Referenced by app_cb_ind_input(), app_cb_ind_inputtrig(), app_cb_ind_stopreq(), and app_cb_ind_system().
vos_res_t app_api_req_version | ( | bool | in_b_local_version | ) |
This message requests the version of knet agent.
in_b_local_version | is TRUE if we want to speak to local agent or FALSE to remote agent. |
vos_res_t app_api_req_wakeup | ( | u8 | in_u8_hh, | |
u8 | in_u8_mm | |||
) |
This service program an RTC wakeup.
in_u8_hh | specify the hour to wakeup | |
in_u8_mm | specify the minut to wakeup |
app_cb_connect_ind | ( | bool | in_b_is_mmi_system, | |
bool | in_b_connected_to_local, | |||
bool | in_b_connected | |||
) |
This callback indicates the application is connected or not to the Knet Agent (start point to performs M2M requests).
in_b_is_mmi_system | TRUE if MMI, else FALSE. | |
in_b_connected_to_local | TRUE if connected, else FALSE. | |
in_b_connected | inform if link is ok/ko with Knet agent. |
app_cb_ind_areatrig | ( | char * | in_pc_date, | |
u32 | in_u32_id, | |||
s32 | in_s32_lat, | |||
s32 | in_s32_long, | |||
u32 | in_u32_course, | |||
u32 | in_u32_speed, | |||
u32 | in_u32_radius, | |||
area_way_e | in_e_way | |||
) |
KMS areatrig message received.
in_pc_date | is the date of the areatrig | |
in_u32_id | is the id of the area | |
in_s32_lat | is the latitude in 1/100000 degrees | |
in_s32_long | is the longitude in 1/100000 degrees | |
in_u32_course | is the course in degrees | |
in_u32_speed | is the speed in km/h | |
in_u32_radius | is the radius of the area | |
in_e_way | is the in/out detection mode |
app_cb_ind_calltrig | ( | char * | in_pc_status, | |
char * | in_pc_ident, | |||
char * | in_pc_date | |||
) |
KMS CALLTRIG message received.
in_pc_status | gives the status af the GSM state | |
in_pc_ident | gives the phone number of the shipper | |
in_pc_date | provides the date of call |
app_cb_ind_dota | ( | char * | in_pc_report | ) |
KMS DOTA message received.
in_pc_report | is the dota status. |
app_cb_ind_gsmtrig | ( | report_e | in_e_network | ) |
KMS GSMTRIG message received.
in_e_network | gives the status of GSM network |
app_cb_ind_input | ( | bool | in_b_is_mmi_system, | |
io_type_e | in_e_type, | |||
u32 | in_u32_id, | |||
u32 | in_u32_value | |||
) |
KMS INPUT message received.
in_b_is_mmi_system | TRUE if MMI, else FALSE. | |
in_e_type | gives the type of the I/O (digital, adc, apc, temperature) | |
in_u32_id | gives the num id of the I/O | |
in_u32_value | gives the value read. |
app_cb_ind_inputtrig | ( | bool | in_b_is_mmi_system, | |
io_type_e | in_e_type, | |||
u32 | in_u32_id, | |||
u32 | in_u32_value, | |||
io_way_e | in_e_way | |||
) |
KMS INPUTTRIG message received.
in_b_is_mmi_system | TRUE if MMI, else FALSE. | |
in_e_type | gives the type of the I/O (digital, adc, apc, temperature). | |
in_u32_id | gives the num id of the I/O. | |
in_u32_value | gives the value read. | |
in_e_way | is the threshold passing/edge mode. |
app_cb_ind_position | ( | char * | in_pc_date, | |
u32 | in_u32_fix, | |||
s32 | in_s32_lat, | |||
s32 | in_s32_long, | |||
s32 | in_s32_alt, | |||
u32 | in_u32_course, | |||
u32 | in_u32_speed, | |||
u32 | in_u32_nsat, | |||
u32 | in_u32_hdop | |||
) |
KMS position message received.
in_pc_date | is the date of the position | |
in_u32_fix | is the fix status of the position | |
in_s32_lat | is the latitude in 1/100000 degrees | |
in_s32_long | is the longitude in 1/100000 degrees | |
in_s32_alt | is the altitude in meters | |
in_u32_course | is the course in degrees | |
in_u32_speed | is the speed in km/h | |
in_u32_nsat | is the number of satelites | |
in_u32_hdop | is the horizontale dilution |
app_cb_ind_rssi | ( | u32 | in_u32_value | ) |
KMS RSSI message received.
in_u32_value | is the RSSI value |
app_cb_ind_sms | ( | char * | in_pc_ident, | |
report_e | in_e_report | |||
) |
KMS SMS message received.
in_pc_ident | gives the phone number of the destination | |
in_e_report | contains the result : OK or KO |
app_cb_ind_smstrig | ( | char * | in_pc_ident, | |
char * | in_pc_msg | |||
) |
KMS SMSTRIG message received.
in_pc_ident | gives the phone number of the shipper | |
in_pc_msg | provides the SMS body in text format |
app_cb_ind_stats | ( | bearer_class_e | in_e_class, | |
char * | in_pc_status, | |||
char * | in_pc_start, | |||
char * | in_pc_stop, | |||
u32 | in_u32_tx, | |||
u32 | in_u32_rx | |||
) |
KMS STATS meassage received.
in_e_class | class of the bearer. | |
in_pc_status | current wanesy link status. | |
in_pc_start | start date of the connexion. | |
in_pc_stop | stop date of the connexion. | |
in_u32_tx | transmitted bytes. | |
in_u32_rx | received bytes. |
app_cb_ind_stats_system | ( | u32 | in_u32_flash, | |
u32 | in_u32_ram, | |||
u32 | in_u32_cpu | |||
) |
KMS STATS meassage received.
in_u32_flash | provides percentage of used flash. | |
in_u32_ram | provides percentage of used ram. | |
in_u32_cpu | provides percentage of used cpu. |
app_cb_ind_statstrig | ( | bearer_class_e | in_e_class, | |
char * | in_pc_status, | |||
char * | in_pc_start, | |||
char * | in_pc_stop, | |||
u32 | in_u32_tx, | |||
u32 | in_u32_rx | |||
) |
KMS STATS meassage received.
in_e_class | class of the bearer. | |
in_pc_status | current wanesy link status. | |
in_pc_start | start date of the connexion. | |
in_pc_stop | stop date of the connexion. | |
in_u32_tx | transmitted bytes. | |
in_u32_rx | received bytes. |
app_cb_ind_stopreq | ( | char * | in_pc_cause | ) |
KMS STOPREQ message received.
in_pc_cause | is the cause of the request (poweroff, reboot...) |
app_cb_ind_system | ( | bool | in_b_is_mmi_system, | |
bool | in_b_is_local_agent, | |||
system_act_e | in_e_act, | |||
bearer_class_e | in_e_class, | |||
report_e | in_e_report | |||
) |
KMS SYSTEM message received.
in_b_is_mmi_system | TRUE if MMI, else FALSE. | |
in_b_is_local_agent | is a flag to know is we receive msg from local or remote knetd. | |
in_e_act | specify the kind of command (disconnect, handover, reboot, reload). | |
in_e_class | (mandatory) specify the class of new bearer. | |
in_e_report | report for the handover. |
app_cb_ind_version | ( | char * | in_pc_revision | ) |
KMS VERSION message received.
in_pc_revision | provides the current version of the KNET agent. |
on_button_connect_clicked | ( | GtkButton * | button, | |
gpointer | user_data | |||
) |
Called when 'connect' button is pressed.
button | is the GtkButton's pointer. | |
user_data | is normally empty for this function. |
Referenced by create_window1().
on_decrement_pressed | ( | GtkButton * | button, | |
gpointer | user_data | |||
) |
Called when 'volume increase' or 'backlight increase' buttons are pressed.
button | is GtkButton's pointer for backlight and volume buttons. | |
user_data | is a pointer on ui_volume or ui_backlight. |
Referenced by create_window1().
on_increment_or_decrement_released | ( | GtkButton * | button, | |
gpointer | user_data | |||
) |
Called whent 'volumes' or 'backlights' buttons are released.
button | is GtkButton's pointer for backlight and volume buttons. | |
user_data | is a pointer on ui_volume or ui_backlight. |
Referenced by create_window1().
on_increment_pressed | ( | GtkButton * | button, | |
gpointer | user_data | |||
) |
Called when 'volume decrease' or 'backlight decrease' buttons are pressed.
button | is GtkButton's pointer for backlight and volume buttons. | |
user_data | is a pointer on ui_volume or ui_backlight. |
Referenced by create_window1().