cli: move helper IP conversion functions from devices.c to utils.c

This commit is contained in:
Jiří Klimeš
2012-01-05 16:30:22 +01:00
parent 3a23cddb37
commit e4327518f3
3 changed files with 71 additions and 55 deletions

View File

@@ -28,6 +28,8 @@
int matches (const char *cmd, const char *pattern);
int next_arg (int *argc, char ***argv);
char *ssid_to_printable (const char *str, gsize len);
char *nmc_ip4_address_as_string (guint32 ip, GError **error);
char *nmc_ip6_address_as_string (const struct in6_addr *ip, GError **error);
int nmc_string_screen_width (const char *start, const char *end);
void set_val_str (NmcOutputField fields_array[], guint32 index, const char *value);
void set_val_arr (NmcOutputField fields_array[], guint32 index, const char **value);