diff options
author | Kai Blin <kai@samba.org> | 2008-09-24 23:23:01 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-09-26 20:52:13 +0200 |
commit | 694786b23c30e0a3449c7222433e3fdc7ef7c0e1 (patch) | |
tree | 248621f298d710be2f7a3172d7900114bc6f1ad4 /source3/utils/net_util.c | |
parent | f50ebbe29ff13d43ae8544c273247173ff12d45a (diff) | |
download | samba-694786b23c30e0a3449c7222433e3fdc7ef7c0e1.tar.gz samba-694786b23c30e0a3449c7222433e3fdc7ef7c0e1.tar.bz2 samba-694786b23c30e0a3449c7222433e3fdc7ef7c0e1.zip |
net: Make share type lookup a function.
Diffstat (limited to 'source3/utils/net_util.c')
-rw-r--r-- | source3/utils/net_util.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source3/utils/net_util.c b/source3/utils/net_util.c index 88850d29df..fbb3c24b03 100644 --- a/source3/utils/net_util.c +++ b/source3/utils/net_util.c @@ -2,6 +2,7 @@ * Unix SMB/CIFS implementation. * Helper routines for net * Copyright (C) Volker Lendecke 2006 + * Copyright (C) Kai Blin 2008 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -595,3 +596,14 @@ void net_display_usage_from_functable(struct functable *table) d_printf("%s\n", table[i].usage); } } + +const char *net_share_type_str(int num_type) +{ + switch(num_type) { + case 0: return "Disk"; + case 1: return "Print"; + case 2: return "Dev"; + case 3: return "IPC"; + default: return "Unknown"; + } +} |