diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2014-02-09 13:51:38 +0100 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2014-02-09 13:51:38 +0100 |
commit | 828f125ee5957ee3f64d45329f5ac261a2a3c1a7 (patch) | |
tree | 7cb2c2433a4fae20f660dd60819350034ea1ebeb /include/gprs.h | |
parent | 6cb0b59e3f0a7b8f2c9690b7e8d171d88d000270 (diff) | |
download | external_libsamsung-ipc-828f125ee5957ee3f64d45329f5ac261a2a3c1a7.zip external_libsamsung-ipc-828f125ee5957ee3f64d45329f5ac261a2a3c1a7.tar.gz external_libsamsung-ipc-828f125ee5957ee3f64d45329f5ac261a2a3c1a7.tar.bz2 |
Consistent coding style in helpers
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'include/gprs.h')
-rw-r--r-- | include/gprs.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/include/gprs.h b/include/gprs.h index 0b5dcc9..568892d 100644 --- a/include/gprs.h +++ b/include/gprs.h @@ -78,11 +78,11 @@ struct ipc_gprs_define_pdp_context_data { struct ipc_gprs_pdp_context_request_set_data { unsigned char enable; unsigned char cid; - unsigned char magic[4]; + unsigned char magic1[4]; unsigned char username[32]; unsigned char password[32]; unsigned char unknown1[32]; - unsigned char unknown2; + unsigned char magic2; } __attribute__((__packed__)); struct ipc_gprs_pdp_context_request_get_entry { @@ -131,11 +131,12 @@ struct ipc_gprs_port_list_data { * Helpers */ -void ipc_gprs_port_list_setup(struct ipc_gprs_port_list_data *message); -void ipc_gprs_pdp_context_request_set_setup(struct ipc_gprs_pdp_context_request_set_data *message, - unsigned char cid, int enable, char *username, char *password); -void ipc_gprs_define_pdp_context_setup(struct ipc_gprs_define_pdp_context_data *message, - unsigned char cid, int enable, char *apn); +int ipc_gprs_define_pdp_context_setup(struct ipc_gprs_define_pdp_context_data *data, + unsigned char enable, unsigned char cid, const char *apn); +int ipc_gprs_pdp_context_request_set_setup(struct ipc_gprs_pdp_context_request_set_data *data, + unsigned char enable, unsigned char cid, const char *username, + const char *password); +int ipc_gprs_port_list_setup(struct ipc_gprs_port_list_data *data); #endif |