diff options
author | James Maki <jmaki@multitech.com> | 2010-04-23 11:58:20 -0500 |
---|---|---|
committer | James Maki <jmaki@multitech.com> | 2010-04-23 11:58:20 -0500 |
commit | 14fb44b17123b27e562379f51b75ee889982688d (patch) | |
tree | 3c2344f5c42396ab839638ee12f7c2f66a2656cb /src/sms_list.h | |
download | sms-utils-14fb44b17123b27e562379f51b75ee889982688d.tar.gz sms-utils-14fb44b17123b27e562379f51b75ee889982688d.tar.bz2 sms-utils-14fb44b17123b27e562379f51b75ee889982688d.zip |
initial commit
Diffstat (limited to 'src/sms_list.h')
-rw-r--r-- | src/sms_list.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/sms_list.h b/src/sms_list.h new file mode 100644 index 0000000..ae04d38 --- /dev/null +++ b/src/sms_list.h @@ -0,0 +1,32 @@ +#ifndef __SMS_LIST_H +#define __SMS_LIST_H + +enum { + CMD_TYPE_CMGL, + CMD_TYPE_CMGR, +}; + +struct msg_list_info { + int cmd_type; + int index; + int status; + int state; + + int nr_lines; + int nr_unread; + int nr_read; + int nr_unsent; + int nr_sent; + int nr_unknown; + int nr_msgs; + + struct list_head msg_list; +}; + +void sms_list_free(struct msg_list_info *list_info); +int sms_list_get(int fd, struct msg_list_info *list_info); + +void sms_list_help(FILE *out); +int sms_list(int argc, char **argv); + +#endif /* ~__SMS_LIST_H */ |