diff options
Diffstat (limited to 'client_list.c')
-rw-r--r-- | client_list.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/client_list.c b/client_list.c index 51c50fa..92f7b91 100644 --- a/client_list.c +++ b/client_list.c @@ -25,6 +25,19 @@ #include "client_list.h" #include "datatypes.h" +char* client_type_tostring(client_type_t type) +{ + switch(type) + { + case MASTER: return "master"; + case STANDBY: return "standby"; + case MASTER_HB: return "master_hb"; + case STANDBY_HB: return "standby_hb"; + case DEFAULT: return "unspecified"; + } + return "<invalid>"; +} + client_t* client_get_last(client_t* first) { if(!first) |