example_xdr.h

Go to the documentation of this file.
00001 /* AUTOGENERATED FILE -- DO NOT EDIT */
00002 
00012 /*
00013  * Please do not edit this file.
00014  * It was generated using rpcgen.
00015  */
00016 
00017 #ifndef EXAMPLE_XDR_H
00018 #define EXAMPLE_XDR_H
00019 
00020 #include <rpc/rpc.h>
00021 
00022 
00023 #ifdef __cplusplus
00024 extern "C" {
00025 #endif
00026 
00030 enum example_color {
00031         RED = 0,
00032         ORANGE = 1,
00033         YELLOW = 2,
00034         GREEN = 3,
00035         BLUE = 4,
00036         INDIGO = 5,
00037         VIOLET = 6,
00038 };
00039 typedef enum example_color example_color;
00040 
00041 struct example_color_choice {
00042         struct {
00043                 u_int acceptable_len;
00044                 enum example_color *acceptable_val;
00045         } acceptable;
00046         enum example_color preferred;
00047 };
00048 typedef struct example_color_choice example_color_choice;
00049 
00050 typedef int example_count;
00051 
00052 
00053 /* The xdr functions.  The application should never need to call these
00054    directly. */
00055 #if defined(__STDC__) || defined(__cplusplus)
00056 extern  bool_t xdr_example_color (XDR *, example_color*);
00057 extern  bool_t xdr_example_color_choice (XDR *, example_color_choice*);
00058 extern  bool_t xdr_example_count (XDR *, example_count*);
00059 
00060 #else /* K&R C */
00061 extern bool_t xdr_example_color ();
00062 extern bool_t xdr_example_color_choice ();
00063 extern bool_t xdr_example_count ();
00064 
00065 #endif /* K&R C */
00066 
00070 #ifdef __cplusplus
00071 }
00072 #endif
00073 
00074 #endif /* !EXAMPLE_XDR_H */
00075 

miniRPC 0.3.2
Documentation generated by Doxygen 1.4.7