| 24 #define _QQ_MY_UTILS_H_ |
24 #define _QQ_MY_UTILS_H_ |
| 25 |
25 |
| 26 #include <stdio.h> |
26 #include <stdio.h> |
| 27 #include <glib.h> |
27 #include <glib.h> |
| 28 |
28 |
| 29 #define QQ_NAME_PREFIX "qq-" |
|
| 30 |
|
| 31 gchar *get_name_by_index_str(gchar **array, const gchar *index_str, gint amount); |
29 gchar *get_name_by_index_str(gchar **array, const gchar *index_str, gint amount); |
| 32 gchar *get_index_str_by_name(gchar **array, const gchar *name, gint amount); |
30 gchar *get_index_str_by_name(gchar **array, const gchar *name, gint amount); |
| 33 gint qq_string_to_dec_value(const gchar *str); |
31 gint qq_string_to_dec_value(const gchar *str); |
| 34 |
32 |
| 35 gchar **split_data(guint8 *data, gint len, const gchar *delimit, gint expected_fields); |
33 gchar **split_data(guint8 *data, gint len, const gchar *delimit, gint expected_fields); |