00001 /* 00002 Unix SMB/CIFS implementation. 00003 00004 Samba rpcecho definitions. 00005 00006 Copyright (C) Tim Potter 2003 00007 00008 This program is free software; you can redistribute it and/or modify 00009 it under the terms of the GNU General Public License as published by 00010 the Free Software Foundation; either version 2 of the License, or 00011 (at your option) any later version. 00012 00013 This program is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 GNU General Public License for more details. 00017 00018 You should have received a copy of the GNU General Public License 00019 along with this program; if not, write to the Free Software 00020 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00021 */ 00022 00023 #ifndef _RPC_ECHO_H 00024 #define _RPC_ECHO_H 00025 00026 #define ECHO_ADD_ONE 0x00 00027 #define ECHO_DATA 0x01 00028 #define ECHO_SINK_DATA 0x02 00029 #define ECHO_SOURCE_DATA 0x03 00030 00031 typedef struct echo_q_add_one 00032 { 00033 uint32 request; 00034 } ECHO_Q_ADD_ONE; 00035 00036 typedef struct echo_r_add_one 00037 { 00038 uint32 response; 00039 } ECHO_R_ADD_ONE; 00040 00041 typedef struct echo_q_echo_data 00042 { 00043 uint32 size; 00044 char *data; 00045 } ECHO_Q_ECHO_DATA; 00046 00047 typedef struct echo_r_echo_data 00048 { 00049 uint32 size; 00050 char *data; 00051 } ECHO_R_ECHO_DATA; 00052 00053 typedef struct echo_q_source_data 00054 { 00055 uint32 size; 00056 } ECHO_Q_SOURCE_DATA; 00057 00058 typedef struct echo_r_source_data 00059 { 00060 uint32 size; 00061 char *data; 00062 } ECHO_R_SOURCE_DATA; 00063 00064 typedef struct echo_q_sink_data 00065 { 00066 uint32 size; 00067 char *data; 00068 } ECHO_Q_SINK_DATA; 00069 00070 typedef struct echo_r_sink_data 00071 { 00072 int dummy; /* unused */ 00073 } ECHO_R_SINK_DATA; 00074 00075 #endif
1.4.7