1613a2f6bSGordon Ross /* 2613a2f6bSGordon Ross * Copyright (c) 2000, Boris Popov 3613a2f6bSGordon Ross * All rights reserved. 4613a2f6bSGordon Ross * 5613a2f6bSGordon Ross * Redistribution and use in source and binary forms, with or without 6613a2f6bSGordon Ross * modification, are permitted provided that the following conditions 7613a2f6bSGordon Ross * are met: 8613a2f6bSGordon Ross * 1. Redistributions of source code must retain the above copyright 9613a2f6bSGordon Ross * notice, this list of conditions and the following disclaimer. 10613a2f6bSGordon Ross * 2. Redistributions in binary form must reproduce the above copyright 11613a2f6bSGordon Ross * notice, this list of conditions and the following disclaimer in the 12613a2f6bSGordon Ross * documentation and/or other materials provided with the distribution. 13613a2f6bSGordon Ross * 3. All advertising materials mentioning features or use of this software 14613a2f6bSGordon Ross * must display the following acknowledgement: 15613a2f6bSGordon Ross * This product includes software developed by Boris Popov. 16613a2f6bSGordon Ross * 4. Neither the name of the author nor the names of any co-contributors 17613a2f6bSGordon Ross * may be used to endorse or promote products derived from this software 18613a2f6bSGordon Ross * without specific prior written permission. 19613a2f6bSGordon Ross * 20613a2f6bSGordon Ross * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 21613a2f6bSGordon Ross * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22613a2f6bSGordon Ross * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23613a2f6bSGordon Ross * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 24613a2f6bSGordon Ross * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25613a2f6bSGordon Ross * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26613a2f6bSGordon Ross * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27613a2f6bSGordon Ross * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28613a2f6bSGordon Ross * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29613a2f6bSGordon Ross * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30613a2f6bSGordon Ross * SUCH DAMAGE. 31613a2f6bSGordon Ross */ 32613a2f6bSGordon Ross 337d815089SGordon Ross /* 347d815089SGordon Ross * Copyright 2013 Nexenta Systems, Inc. All rights reserved. 357d815089SGordon Ross */ 367d815089SGordon Ross 374bff34e3Sthurlow #ifndef _SMBUTIL_COMMON_H 384bff34e3Sthurlow #define _SMBUTIL_COMMON_H 394bff34e3Sthurlow 404bff34e3Sthurlow #ifdef __cplusplus 414bff34e3Sthurlow extern "C" { 424bff34e3Sthurlow #endif 434bff34e3Sthurlow 444bff34e3Sthurlow #include <stdio.h> 454bff34e3Sthurlow #include <stdlib.h> 464bff34e3Sthurlow 474bff34e3Sthurlow int cmd_crypt(int argc, char *argv[]); 48*a6d10110SGordon Ross int cmd_discon(int argc, char *argv[]); 494bff34e3Sthurlow int cmd_help(int argc, char *argv[]); 507d815089SGordon Ross int cmd_info(int argc, char *argv[]); 514bff34e3Sthurlow int cmd_login(int argc, char *argv[]); 524bff34e3Sthurlow int cmd_logout(int argc, char *argv[]); 534bff34e3Sthurlow int cmd_logoutall(int argc, char *argv[]); 544bff34e3Sthurlow int cmd_lookup(int argc, char *argv[]); 554bff34e3Sthurlow int cmd_print(int argc, char *argv[]); 564bff34e3Sthurlow int cmd_status(int argc, char *argv[]); 574bff34e3Sthurlow int cmd_view(int argc, char *argv[]); 584bff34e3Sthurlow 597d815089SGordon Ross void crypt_usage(void); 60*a6d10110SGordon Ross void discon_usage(void); 614bff34e3Sthurlow void help_usage(void); 627d815089SGordon Ross void info_usage(void); 634bff34e3Sthurlow void login_usage(void); 644bff34e3Sthurlow void logout_usage(void); 654bff34e3Sthurlow void logoutall_usage(void); 664bff34e3Sthurlow void lookup_usage(void); 674bff34e3Sthurlow void print_usage(void); 684bff34e3Sthurlow void status_usage(void); 694bff34e3Sthurlow void view_usage(void); 704bff34e3Sthurlow 717d815089SGordon Ross /* See view.c */ 727d815089SGordon Ross int share_enum_rap(struct smb_ctx *ctx); 737d815089SGordon Ross int share_enum_rpc(struct smb_ctx *ctx, char *server); 747d815089SGordon Ross void view_print_share(char *share, int type, char *comment); 754bff34e3Sthurlow 764bff34e3Sthurlow #ifdef __cplusplus 774bff34e3Sthurlow } 784bff34e3Sthurlow #endif 794bff34e3Sthurlow 804bff34e3Sthurlow #endif /* _SMBUTIL_COMMON_H */ 81