From f4923749132fe32f54b4f300f84071481559d606 Mon Sep 17 00:00:00 2001 From: Simon Busch Date: Sat, 29 Oct 2011 18:55:55 +0200 Subject: Add vim modeline for uniform indentation On IRC we agreed to use vim:ts=4:sw=4:expandtab as uniform indentation style for the library. Signed-off-by: Simon Busch --- include/call.h | 1 + include/disp.h | 1 + include/gen.h | 1 + include/gprs.h | 1 + include/misc.h | 27 ++++++----- include/net.h | 1 + include/pwr.h | 2 +- include/radio.h | 1 + include/sec.h | 1 + include/sms.h | 51 ++++++++++---------- include/types.h | 76 +++++++++++++++--------------- include/util.h | 1 + samsung-ipc/call.c | 2 +- samsung-ipc/device/crespo/crespo_ipc.c | 2 + samsung-ipc/device/crespo/crespo_ipc.h | 2 + samsung-ipc/device/crespo/crespo_nv_data.c | 2 + samsung-ipc/device/crespo/crespo_nv_data.h | 2 + samsung-ipc/device/h1/h1_ipc.c | 2 + samsung-ipc/device/h1/h1_ipc.h | 7 +++ samsung-ipc/gprs.c | 2 + samsung-ipc/ipc.c | 2 + samsung-ipc/ipc_private.h | 4 +- samsung-ipc/ipc_util.c | 2 + samsung-ipc/misc.c | 2 + samsung-ipc/net.c | 2 + samsung-ipc/sec.c | 2 + samsung-ipc/util.c | 2 +- 27 files changed, 121 insertions(+), 80 deletions(-) diff --git a/include/call.h b/include/call.h index 4784039..19e3317 100644 --- a/include/call.h +++ b/include/call.h @@ -97,3 +97,4 @@ char* ipc_call_list_response_get_entry_number(struct ipc_message_info *response, #endif +// vim:ts=4:sw=4:expandtab diff --git a/include/disp.h b/include/disp.h index 1deb599..607e86a 100644 --- a/include/disp.h +++ b/include/disp.h @@ -35,3 +35,4 @@ struct ipc_disp_rssi_info { #endif +// vim:ts=4:sw=4:expandtab diff --git a/include/gen.h b/include/gen.h index e318168..a7cc2e1 100644 --- a/include/gen.h +++ b/include/gen.h @@ -31,3 +31,4 @@ #endif +// vim:ts=4:sw=4:expandtab diff --git a/include/gprs.h b/include/gprs.h index b32b2de..efe4324 100644 --- a/include/gprs.h +++ b/include/gprs.h @@ -94,3 +94,4 @@ void ipc_gprs_pdp_context_setup(struct ipc_gprs_pdp_context *message, char *user #endif +// vim:ts=4:sw=4:expandtab diff --git a/include/misc.h b/include/misc.h index 111fe7b..550a931 100644 --- a/include/misc.h +++ b/include/misc.h @@ -23,27 +23,28 @@ struct ipc_message_info; -#define IPC_MISC_ME_VERSION 0x0A01 -#define IPC_MISC_ME_IMSI 0x0A02 -#define IPC_MISC_ME_SN 0x0A03 -#define IPC_MISC_TIME_INFO 0x0A07 +#define IPC_MISC_ME_VERSION 0x0A01 +#define IPC_MISC_ME_IMSI 0x0A02 +#define IPC_MISC_ME_SN 0x0A03 +#define IPC_MISC_TIME_INFO 0x0A07 struct ipc_misc_me_version { - char sw_version[32]; - char hw_version[32]; - char cal_date[32]; - char misc[32]; + char sw_version[32]; + char hw_version[32]; + char cal_date[32]; + char misc[32]; } __attribute__((__packed__)); struct ipc_misc_time_info { - unsigned char tz_valid, daylight_valid; - unsigned char year, mon, day; - unsigned char hour, min, sec; - unsigned char tz, dl, dv; - char plmn[6]; + unsigned char tz_valid, daylight_valid; + unsigned char year, mon, day; + unsigned char hour, min, sec; + unsigned char tz, dl, dv; + char plmn[6]; } __attribute__((__packed__)); char* ipc_misc_me_imsi_response_get_imsi(struct ipc_message_info *response); #endif +// vim:ts=4:sw=4:expandtab diff --git a/include/net.h b/include/net.h index fe6f328..4a306dc 100644 --- a/include/net.h +++ b/include/net.h @@ -89,3 +89,4 @@ void ipc_net_regist_get(struct ipc_net_regist_get *message, int domain); #endif +// vim:ts=4:sw=4:expandtab diff --git a/include/pwr.h b/include/pwr.h index a977557..ab1a23e 100644 --- a/include/pwr.h +++ b/include/pwr.h @@ -35,4 +35,4 @@ #endif - +// vim:ts=4:sw=4:expandtab diff --git a/include/radio.h b/include/radio.h index d1c842e..6615491 100644 --- a/include/radio.h +++ b/include/radio.h @@ -90,3 +90,4 @@ const char *ipc_response_type_to_str(int type); #endif +// vim:ts=4:sw=4:expandtab diff --git a/include/sec.h b/include/sec.h index d5dee00..2a77c03 100644 --- a/include/sec.h +++ b/include/sec.h @@ -116,3 +116,4 @@ void ipc_sec_pin_status_set_setup(struct ipc_sec_pin_status_set *message, #endif +// vim:ts=4:sw=4:expandtab diff --git a/include/sms.h b/include/sms.h index d9c7c91..a9d185b 100644 --- a/include/sms.h +++ b/include/sms.h @@ -21,36 +21,36 @@ #ifndef __SMS_H__ #define __SMS_H__ -#define IPC_SMS_SEND_MSG 0x0401 -#define IPC_SMS_INCOMING_MSG 0x0402 -#define IPC_SMS_READ_MSG 0x0403 -#define IPC_SMS_SAVE_MSG 0x0404 -#define IPC_SMS_DEL_MSG 0x0405 -#define IPC_SMS_DELIVER_REPORT 0x0406 -#define IPC_SMS_DEVICE_READY 0x0407 -#define IPC_SMS_SEL_MEM 0x0408 -#define IPC_SMS_STORED_MSG_COUNT 0x0409 -#define IPC_SMS_SVC_CENTER_ADDR 0x040A -#define IPC_SMS_SVC_OPTION 0x040B -#define IPC_SMS_MEM_STATUS 0x040C -#define IPC_SMS_CBS_MSG 0x040D -#define IPC_SMS_CBS_CONFIG 0x040E -#define IPC_SMS_STORED_MSG_STATUS 0x040F -#define IPC_SMS_PARAM_COUNT 0x0410 -#define IPC_SMS_PARAM 0x0411 - -#define IPC_SMS_MSG_MULTIPLE 1 -#define IPC_SMS_MSG_SINGLE 2 - -#define IPC_SMS_TYPE_POINT_TO_POINT 1 -#define IPC_SMS_TYPE_STATUS_REPORT 2 +#define IPC_SMS_SEND_MSG 0x0401 +#define IPC_SMS_INCOMING_MSG 0x0402 +#define IPC_SMS_READ_MSG 0x0403 +#define IPC_SMS_SAVE_MSG 0x0404 +#define IPC_SMS_DEL_MSG 0x0405 +#define IPC_SMS_DELIVER_REPORT 0x0406 +#define IPC_SMS_DEVICE_READY 0x0407 +#define IPC_SMS_SEL_MEM 0x0408 +#define IPC_SMS_STORED_MSG_COUNT 0x0409 +#define IPC_SMS_SVC_CENTER_ADDR 0x040A +#define IPC_SMS_SVC_OPTION 0x040B +#define IPC_SMS_MEM_STATUS 0x040C +#define IPC_SMS_CBS_MSG 0x040D +#define IPC_SMS_CBS_CONFIG 0x040E +#define IPC_SMS_STORED_MSG_STATUS 0x040F +#define IPC_SMS_PARAM_COUNT 0x0410 +#define IPC_SMS_PARAM 0x0411 + +#define IPC_SMS_MSG_MULTIPLE 1 +#define IPC_SMS_MSG_SINGLE 2 + +#define IPC_SMS_TYPE_POINT_TO_POINT 1 +#define IPC_SMS_TYPE_STATUS_REPORT 2 struct ipc_sms_send_msg { - unsigned char hint, length; + unsigned char hint, length; } __attribute__((__packed__)); struct ipc_sms_incoming_msg { - unsigned char type, unk, length; + unsigned char type, unk, length; } __attribute__((__packed__)); void ipc_sms_send_msg(unsigned char *data, unsigned char length, int request_id); @@ -58,3 +58,4 @@ void ipc_sms_deliver_report(int request_id); #endif +// vim:ts=4:sw=4:expandtab diff --git a/include/types.h b/include/types.h index 375d6d7..3e225c6 100644 --- a/include/types.h +++ b/include/types.h @@ -32,16 +32,16 @@ #include "gprs.h" /* AP -> Baseband */ -#define IPC_TYPE_EXEC 0x01 -#define IPC_TYPE_GET 0x02 -#define IPC_TYPE_SET 0x03 -#define IPC_TYPE_CFRM 0x04 -#define IPC_TYPE_EVENT 0x05 +#define IPC_TYPE_EXEC 0x01 +#define IPC_TYPE_GET 0x02 +#define IPC_TYPE_SET 0x03 +#define IPC_TYPE_CFRM 0x04 +#define IPC_TYPE_EVENT 0x05 /* Baseband -> AP */ -#define IPC_TYPE_INDI 0x01 -#define IPC_TYPE_RESP 0x02 -#define IPC_TYPE_NOTI 0x03 +#define IPC_TYPE_INDI 0x01 +#define IPC_TYPE_RESP 0x02 +#define IPC_TYPE_NOTI 0x03 /* Message groups */ #define IPC_GROUP_PWR 0x01 @@ -64,40 +64,42 @@ #define IPC_GROUP_GEN 0x80 /* Pb */ -#define IPC_PB_ACCESS 0x0601 -#define IPC_PB_STORAGE 0x0602 -#define IPC_PB_STORAGE_LIST 0x0603 -#define IPC_PB_ENTRY_INFO 0x0604 -#define IPC_PB_CAPABILITY_INFO 0x0605 +#define IPC_PB_ACCESS 0x0601 +#define IPC_PB_STORAGE 0x0602 +#define IPC_PB_STORAGE_LIST 0x0603 +#define IPC_PB_ENTRY_INFO 0x0604 +#define IPC_PB_CAPABILITY_INFO 0x0605 /* SS */ -#define IPC_SS_WAITING 0x0C01 -#define IPC_SS_CLI 0x0C02 -#define IPC_SS_BARRING 0x0C03 -#define IPC_SS_BARRING_PW 0x0C04 -#define IPC_SS_FORWARDING 0x0C05 -#define IPC_SS_INFO 0x0C06 -#define IPC_SS_MANAGE_CALL 0x0C07 -#define IPC_SS_USSD 0x0C08 -#define IPC_SS_AOC 0x0C09 -#define IPC_SS_RELEASE_COMPLETE 0x0C0A +#define IPC_SS_WAITING 0x0C01 +#define IPC_SS_CLI 0x0C02 +#define IPC_SS_BARRING 0x0C03 +#define IPC_SS_BARRING_PW 0x0C04 +#define IPC_SS_FORWARDING 0x0C05 +#define IPC_SS_INFO 0x0C06 +#define IPC_SS_MANAGE_CALL 0x0C07 +#define IPC_SS_USSD 0x0C08 +#define IPC_SS_AOC 0x0C09 +#define IPC_SS_RELEASE_COMPLETE 0x0C0A /* Sat */ -#define IPC_SAT_PROFILE_DOWNLOAD 0x0E01 -#define IPC_SAT_ENVELOPE_CMD 0x0E02 -#define IPC_SAT_PROACTIVE_CMD 0x0E03 -#define IPC_SAT_TERMINATE_USAT_SESSION 0x0E04 -#define IPC_SAT_EVENT_DOWNLOAD 0x0E05 -#define IPC_SAT_PROVIDE_LOCAL_INFO 0x0E06 -#define IPC_SAT_POLLING 0x0E07 -#define IPC_SAT_REFRESH 0x0E08 -#define IPC_SAT_SETUP_EVENT_LIST 0x0E09 -#define IPC_SAT_CALL_CONTROL_RESULT 0x0E0A -#define IPC_SAT_IMAGE_CLUT 0x0E0B -#define IPC_SAT_CALL_PROCESSING 0x0E0C +#define IPC_SAT_PROFILE_DOWNLOAD 0x0E01 +#define IPC_SAT_ENVELOPE_CMD 0x0E02 +#define IPC_SAT_PROACTIVE_CMD 0x0E03 +#define IPC_SAT_TERMINATE_USAT_SESSION 0x0E04 +#define IPC_SAT_EVENT_DOWNLOAD 0x0E05 +#define IPC_SAT_PROVIDE_LOCAL_INFO 0x0E06 +#define IPC_SAT_POLLING 0x0E07 +#define IPC_SAT_REFRESH 0x0E08 +#define IPC_SAT_SETUP_EVENT_LIST 0x0E09 +#define IPC_SAT_CALL_CONTROL_RESULT 0x0E0A +#define IPC_SAT_IMAGE_CLUT 0x0E0B +#define IPC_SAT_CALL_PROCESSING 0x0E0C /* IMEI */ -#define IPC_IMEI_START 0x1001 -#define IPC_IMEI_CHECK_DEVICE_INFO 0x1002 +#define IPC_IMEI_START 0x1001 +#define IPC_IMEI_CHECK_DEVICE_INFO 0x1002 #endif + +// vim:ts=4:sw=4:expandtab diff --git a/include/util.h b/include/util.h index da9872b..68fffbc 100644 --- a/include/util.h +++ b/include/util.h @@ -29,3 +29,4 @@ void *file_read(char *file_name, int size, int block_size); #endif +// vim:ts=4:sw=4:expandtab diff --git a/samsung-ipc/call.c b/samsung-ipc/call.c index 2ca3ef4..5b725ad 100644 --- a/samsung-ipc/call.c +++ b/samsung-ipc/call.c @@ -107,4 +107,4 @@ char* ipc_call_list_response_get_entry_number(struct ipc_message_info *response, return number; } - +// vim:ts=4:sw=4:expandtab diff --git a/samsung-ipc/device/crespo/crespo_ipc.c b/samsung-ipc/device/crespo/crespo_ipc.c index 8752ae0..61326da 100644 --- a/samsung-ipc/device/crespo/crespo_ipc.c +++ b/samsung-ipc/device/crespo/crespo_ipc.c @@ -574,3 +574,5 @@ struct ipc_ops ipc_ops = { .recv = crespo_ipc_client_recv, .bootstrap = crespo_modem_bootstrap, }; + +// vim:ts=4:sw=4:expandtab diff --git a/samsung-ipc/device/crespo/crespo_ipc.h b/samsung-ipc/device/crespo/crespo_ipc.h index a6540b5..9edaa8a 100644 --- a/samsung-ipc/device/crespo/crespo_ipc.h +++ b/samsung-ipc/device/crespo/crespo_ipc.h @@ -48,3 +48,5 @@ int wake_unlock(char *lock_name, int size); extern struct ipc_handlers crespo_ipc_default_handlers; #endif + +// vim:ts=4:sw=4:expandtab diff --git a/samsung-ipc/device/crespo/crespo_nv_data.c b/samsung-ipc/device/crespo/crespo_nv_data.c index 58b034e..a714018 100644 --- a/samsung-ipc/device/crespo/crespo_nv_data.c +++ b/samsung-ipc/device/crespo/crespo_nv_data.c @@ -351,3 +351,5 @@ void nv_data_md5_check(void) printf("nv_data_md5_check: exit\n"); } + +// vim:ts=4:sw=4:expandtab diff --git a/samsung-ipc/device/crespo/crespo_nv_data.h b/samsung-ipc/device/crespo/crespo_nv_data.h index bc17416..1e82a96 100644 --- a/samsung-ipc/device/crespo/crespo_nv_data.h +++ b/samsung-ipc/device/crespo/crespo_nv_data.h @@ -35,3 +35,5 @@ void nv_data_check(void); void nv_data_md5_check(void); #endif + +// vim:ts=4:sw=4:expandtab diff --git a/samsung-ipc/device/h1/h1_ipc.c b/samsung-ipc/device/h1/h1_ipc.c index 601f67d..b2065df 100644 --- a/samsung-ipc/device/h1/h1_ipc.c +++ b/samsung-ipc/device/h1/h1_ipc.c @@ -183,3 +183,5 @@ struct ipc_ops ipc_ops = { .recv = h1_ipc_recv, .bootstrap = NULL, }; + +// vim:ts=4:sw=4:expandtab diff --git a/samsung-ipc/device/h1/h1_ipc.h b/samsung-ipc/device/h1/h1_ipc.h index 1bbc951..992f822 100644 --- a/samsung-ipc/device/h1/h1_ipc.h +++ b/samsung-ipc/device/h1/h1_ipc.h @@ -17,6 +17,9 @@ * along with libsamsung-ipc. If not, see . * */ + + #ifndef _H1_IPC_H_ + #define _H1_IPC_H_ #include @@ -42,3 +45,7 @@ struct hdlc_header { struct ipc_header ipc; } __attribute__((__packed__)); +#endif + +// vim:ts=4:sw=4:expandtab + diff --git a/samsung-ipc/gprs.c b/samsung-ipc/gprs.c index da39ba6..6dcce20 100644 --- a/samsung-ipc/gprs.c +++ b/samsung-ipc/gprs.c @@ -42,3 +42,5 @@ void ipc_gprs_pdp_context_setup(struct ipc_gprs_pdp_context *message, char *user strncpy((char*)message->username, username, 32); strncpy((char*)message->password, password, 32); } + +// vim:ts=4:sw=4:expandtab diff --git a/samsung-ipc/ipc.c b/samsung-ipc/ipc.c index 97a0b18..c68b271 100644 --- a/samsung-ipc/ipc.c +++ b/samsung-ipc/ipc.c @@ -257,3 +257,5 @@ int ipc_client_recv(struct ipc_client *client, struct ipc_message_info *response return client->ops->recv(client, response); } +// vim:ts=4:sw=4:expandtab + diff --git a/samsung-ipc/ipc_private.h b/samsung-ipc/ipc_private.h index 4e05119..890889f 100644 --- a/samsung-ipc/ipc_private.h +++ b/samsung-ipc/ipc_private.h @@ -59,6 +59,6 @@ struct ipc_client { struct ipc_handlers *handlers; }; - - #endif + +// vim:ts=4:sw=4:expandtab diff --git a/samsung-ipc/ipc_util.c b/samsung-ipc/ipc_util.c index b1726e1..b5b2231 100644 --- a/samsung-ipc/ipc_util.c +++ b/samsung-ipc/ipc_util.c @@ -150,3 +150,5 @@ const char *ipc_command_type_to_str(int command) { } } +// vim:ts=4:sw=4:expandtab + diff --git a/samsung-ipc/misc.c b/samsung-ipc/misc.c index c4f27ee..9050908 100644 --- a/samsung-ipc/misc.c +++ b/samsung-ipc/misc.c @@ -32,3 +32,5 @@ char* ipc_misc_me_imsi_response_get_imsi(struct ipc_message_info *response) memcpy(buffer, &response->data[1], DEFAULT_IMSI_LENGTH); return buffer; } + +// vim:ts=4:sw=4:expandtab diff --git a/samsung-ipc/net.c b/samsung-ipc/net.c index 9024e86..85c5205 100644 --- a/samsung-ipc/net.c +++ b/samsung-ipc/net.c @@ -25,3 +25,5 @@ void ipc_net_regist_get(struct ipc_net_regist_get *message, int domain) message->net = 0xff; message->domain = domain; } + +// vim:ts=4:sw=4:expandtab diff --git a/samsung-ipc/sec.c b/samsung-ipc/sec.c index 5d43a62..da982c2 100644 --- a/samsung-ipc/sec.c +++ b/samsung-ipc/sec.c @@ -72,3 +72,5 @@ char* ipc_sec_rsim_access_response_get_file_data(struct ipc_message_info *respon return file_data; } + +// vim:ts=4:sw=4:expandtab diff --git a/samsung-ipc/util.c b/samsung-ipc/util.c index e7692d4..8797b56 100644 --- a/samsung-ipc/util.c +++ b/samsung-ipc/util.c @@ -212,4 +212,4 @@ error: return NULL; } - +// vim:ts=4:sw=4:expandtab -- cgit v1.1