| 1 | /*
|
|---|
| 2 | Unix SMB/CIFS implementation.
|
|---|
| 3 |
|
|---|
| 4 | Samba rpcecho definitions.
|
|---|
| 5 |
|
|---|
| 6 | Copyright (C) Tim Potter 2003
|
|---|
| 7 |
|
|---|
| 8 | This program is free software; you can redistribute it and/or modify
|
|---|
| 9 | it under the terms of the GNU General Public License as published by
|
|---|
| 10 | the Free Software Foundation; either version 2 of the License, or
|
|---|
| 11 | (at your option) any later version.
|
|---|
| 12 |
|
|---|
| 13 | This program is distributed in the hope that it will be useful,
|
|---|
| 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|---|
| 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|---|
| 16 | GNU General Public License for more details.
|
|---|
| 17 |
|
|---|
| 18 | You should have received a copy of the GNU General Public License
|
|---|
| 19 | along with this program; if not, write to the Free Software
|
|---|
| 20 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|---|
| 21 | */
|
|---|
| 22 |
|
|---|
| 23 | #ifndef _RPC_ECHO_H
|
|---|
| 24 | #define _RPC_ECHO_H
|
|---|
| 25 |
|
|---|
| 26 | #define ECHO_ADD_ONE 0x00
|
|---|
| 27 | #define ECHO_DATA 0x01
|
|---|
| 28 | #define ECHO_SINK_DATA 0x02
|
|---|
| 29 | #define ECHO_SOURCE_DATA 0x03
|
|---|
| 30 |
|
|---|
| 31 | typedef struct echo_q_add_one
|
|---|
| 32 | {
|
|---|
| 33 | uint32 request;
|
|---|
| 34 | } ECHO_Q_ADD_ONE;
|
|---|
| 35 |
|
|---|
| 36 | typedef struct echo_r_add_one
|
|---|
| 37 | {
|
|---|
| 38 | uint32 response;
|
|---|
| 39 | } ECHO_R_ADD_ONE;
|
|---|
| 40 |
|
|---|
| 41 | typedef struct echo_q_echo_data
|
|---|
| 42 | {
|
|---|
| 43 | uint32 size;
|
|---|
| 44 | char *data;
|
|---|
| 45 | } ECHO_Q_ECHO_DATA;
|
|---|
| 46 |
|
|---|
| 47 | typedef struct echo_r_echo_data
|
|---|
| 48 | {
|
|---|
| 49 | uint32 size;
|
|---|
| 50 | char *data;
|
|---|
| 51 | } ECHO_R_ECHO_DATA;
|
|---|
| 52 |
|
|---|
| 53 | typedef struct echo_q_source_data
|
|---|
| 54 | {
|
|---|
| 55 | uint32 size;
|
|---|
| 56 | } ECHO_Q_SOURCE_DATA;
|
|---|
| 57 |
|
|---|
| 58 | typedef struct echo_r_source_data
|
|---|
| 59 | {
|
|---|
| 60 | uint32 size;
|
|---|
| 61 | char *data;
|
|---|
| 62 | } ECHO_R_SOURCE_DATA;
|
|---|
| 63 |
|
|---|
| 64 | typedef struct echo_q_sink_data
|
|---|
| 65 | {
|
|---|
| 66 | uint32 size;
|
|---|
| 67 | char *data;
|
|---|
| 68 | } ECHO_Q_SINK_DATA;
|
|---|
| 69 |
|
|---|
| 70 | typedef struct echo_r_sink_data
|
|---|
| 71 | {
|
|---|
| 72 | int dummy; /* unused */
|
|---|
| 73 | } ECHO_R_SINK_DATA;
|
|---|
| 74 |
|
|---|
| 75 | #endif
|
|---|