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
the Free Software Foundation ; either version 2 of the License , or
( 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
along with this program ; if not , write to the Free Software
Foundation , Inc . , 675 Mass Ave , Cambridge , MA 0213 9 , USA .
*/
# ifndef RPCCLIENT_H
# define RPCCLIENT_H
2003-03-18 09:30:30 +03:00
typedef enum {
RPC_RTYPE_NTSTATUS = 0 ,
RPC_RTYPE_WERROR ,
MAX_RPC_RETURN_TYPE ,
} 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 ;
2003-03-18 09:30:30 +03:00
RPC_RETURN_TYPE returntype ;
NTSTATUS ( * ntfn ) ( struct cli_state * cli , TALLOC_CTX * mem_ctx , int argc ,
2003-02-26 02:51:56 +03:00
const char * * argv ) ;
2003-03-18 09:30:30 +03:00
WERROR ( * wfn ) ( struct cli_state * cli , TALLOC_CTX * mem_ctx , int argc , const char * * argv ) ;
2002-10-04 08:10:23 +04:00
int pipe_idx ;
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 */