xref: /illumos-gate/usr/src/cmd/fs.d/smbclnt/smbutil/common.h (revision 613a2f6ba31e891e3d947a356daf5e563d43c1ce)
1*613a2f6bSGordon Ross /*
2*613a2f6bSGordon Ross  * Copyright (c) 2000, Boris Popov
3*613a2f6bSGordon Ross  * All rights reserved.
4*613a2f6bSGordon Ross  *
5*613a2f6bSGordon Ross  * Redistribution and use in source and binary forms, with or without
6*613a2f6bSGordon Ross  * modification, are permitted provided that the following conditions
7*613a2f6bSGordon Ross  * are met:
8*613a2f6bSGordon Ross  * 1. Redistributions of source code must retain the above copyright
9*613a2f6bSGordon Ross  *    notice, this list of conditions and the following disclaimer.
10*613a2f6bSGordon Ross  * 2. Redistributions in binary form must reproduce the above copyright
11*613a2f6bSGordon Ross  *    notice, this list of conditions and the following disclaimer in the
12*613a2f6bSGordon Ross  *    documentation and/or other materials provided with the distribution.
13*613a2f6bSGordon Ross  * 3. All advertising materials mentioning features or use of this software
14*613a2f6bSGordon Ross  *    must display the following acknowledgement:
15*613a2f6bSGordon Ross  *    This product includes software developed by Boris Popov.
16*613a2f6bSGordon Ross  * 4. Neither the name of the author nor the names of any co-contributors
17*613a2f6bSGordon Ross  *    may be used to endorse or promote products derived from this software
18*613a2f6bSGordon Ross  *    without specific prior written permission.
19*613a2f6bSGordon Ross  *
20*613a2f6bSGordon Ross  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
21*613a2f6bSGordon Ross  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22*613a2f6bSGordon Ross  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23*613a2f6bSGordon Ross  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
24*613a2f6bSGordon Ross  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25*613a2f6bSGordon Ross  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26*613a2f6bSGordon Ross  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27*613a2f6bSGordon Ross  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28*613a2f6bSGordon Ross  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29*613a2f6bSGordon Ross  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30*613a2f6bSGordon Ross  * SUCH DAMAGE.
31*613a2f6bSGordon Ross  */
32*613a2f6bSGordon Ross 
334bff34e3Sthurlow #ifndef _SMBUTIL_COMMON_H
344bff34e3Sthurlow #define	_SMBUTIL_COMMON_H
354bff34e3Sthurlow 
364bff34e3Sthurlow #ifdef __cplusplus
374bff34e3Sthurlow extern "C" {
384bff34e3Sthurlow #endif
394bff34e3Sthurlow 
404bff34e3Sthurlow #include <stdio.h>
414bff34e3Sthurlow #include <stdlib.h>
424bff34e3Sthurlow 
434bff34e3Sthurlow int  cmd_crypt(int argc, char *argv[]);
444bff34e3Sthurlow int  cmd_help(int argc, char *argv[]);
454bff34e3Sthurlow int  cmd_login(int argc, char *argv[]);
464bff34e3Sthurlow int  cmd_logout(int argc, char *argv[]);
474bff34e3Sthurlow int  cmd_logoutall(int argc, char *argv[]);
484bff34e3Sthurlow int  cmd_lookup(int argc, char *argv[]);
494bff34e3Sthurlow int  cmd_print(int argc, char *argv[]);
504bff34e3Sthurlow int  cmd_status(int argc, char *argv[]);
514bff34e3Sthurlow int  cmd_view(int argc, char *argv[]);
524bff34e3Sthurlow 
534bff34e3Sthurlow /* No crypt_usage? */
544bff34e3Sthurlow void help_usage(void);
554bff34e3Sthurlow void login_usage(void);
564bff34e3Sthurlow void logout_usage(void);
574bff34e3Sthurlow void logoutall_usage(void);
584bff34e3Sthurlow void lookup_usage(void);
594bff34e3Sthurlow void print_usage(void);
604bff34e3Sthurlow void status_usage(void);
614bff34e3Sthurlow void view_usage(void);
624bff34e3Sthurlow 
634bff34e3Sthurlow extern int loadsmbvfs();
644bff34e3Sthurlow 
654bff34e3Sthurlow #ifdef __cplusplus
664bff34e3Sthurlow }
674bff34e3Sthurlow #endif
684bff34e3Sthurlow 
694bff34e3Sthurlow #endif	/* _SMBUTIL_COMMON_H */
70