2001-10-12 09:59:41 +04:00
/*
2002-01-30 09:08:46 +03:00
Unix SMB / CIFS implementation .
2001-10-12 09:59:41 +04:00
RPC pipe client
Copyright ( C ) Tim Potter 2000
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
2007-07-09 23:25:36 +04:00
the Free Software Foundation ; either version 3 of the License , or
2001-10-12 09:59:41 +04:00
( at your option ) any later version .
This program is distributed in the hope that it will be useful ,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
GNU General Public License for more details .
You should have received a copy of the GNU General Public License
2007-07-10 04:52:41 +04:00
along with this program . If not , see < http : //www.gnu.org/licenses/>.
2001-10-12 09:59:41 +04:00
*/
# ifndef RPCCLIENT_H
# define RPCCLIENT_H
2003-03-18 09:30:30 +03:00
typedef enum {
RPC_RTYPE_NTSTATUS = 0 ,
RPC_RTYPE_WERROR ,
2003-10-28 02:43:15 +03:00
MAX_RPC_RETURN_TYPE
2003-03-18 09:30:30 +03:00
} RPC_RETURN_TYPE ;
2001-10-12 09:59:41 +04:00
struct cmd_set {
2003-01-03 11:28:12 +03:00
const char * name ;
2005-09-30 21:13:37 +04:00
RPC_RETURN_TYPE returntype ;
NTSTATUS ( * ntfn ) ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , int argc ,
const char * * argv ) ;
WERROR ( * wfn ) ( struct rpc_pipe_client * cli , TALLOC_CTX * mem_ctx , int argc , const char * * argv ) ;
int pipe_idx ;
struct rpc_pipe_client * rpc_pipe ;
2003-01-03 11:28:12 +03:00
const char * description ;
const char * usage ;
2001-10-12 09:59:41 +04:00
} ;
# endif /* RPCCLIENT_H */