1 /* usmb - mount SMB shares via FUSE and Samba
2 * Copyright (C) 2006-2009 Geoff Johnstone
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 3 as
6 * published by the Free Software Foundation.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 #include <libsmbclient.h>
25 #if ((USMB_VERSION_STATUS != 'a') && \
26 (USMB_VERSION_STATUS != 'b') && \
27 (USMB_VERSION_STATUS != 'p') && \
28 (USMB_VERSION_STATUS != 's'))
29 #error Unsupported USMB_VERSION_STATUS
33 void show_about (FILE *fp
)
35 fprintf (fp
, "usmb - mount SMB shares via FUSE and Samba\n"
37 "Copyright (C) 2006-2010 Geoff Johnstone.\n"
38 "Licensed under the GNU General Public License.\n"
39 "usmb comes with ABSOLUTELY NO WARRANTY; "
40 "for details please see\n"
41 "http://www.gnu.org/licenses/gpl.txt\n"
43 "Please send bug reports, patches etc. to %s@%s.org\n",
44 "geoffjohnstone", "acm"); // anti-spam.
48 static inline const char * get_status (char ch
)
52 case 'a': return "alpha";
53 case 'b': return "beta";
54 case 'p': return "pre-release";
55 case 's': return "stable";
56 default: return "unofficial";
61 void show_version (FILE *fp
)
65 fprintf (fp
, "usmb version: %08x (%s)\n"
66 "FUSE version: %d.%d\n"
67 "Samba version: %s\n",
68 USMB_VERSION
, get_status (USMB_VERSION_STATUS
),
69 FUSE_MAJOR_VERSION
, FUSE_MINOR_VERSION
,