proto.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /****** rpc_clntout.c ******/
  2. void write_stubs(void);
  3. void printarglist(proc_list *proc, const char *result,
  4. const char *addargname, const char *addargtype);
  5. /****** rpc_cout.c ******/
  6. void emit (definition *def);
  7. /****** rpc_hout.c ******/
  8. void print_datadef(definition *def);
  9. void print_funcdef(definition *def);
  10. void pxdrfuncdecl(const char *name, int pointerp);
  11. void pprocdef(proc_list *proc, version_list *vp,
  12. const char *addargtype, int server_p, int mode);
  13. void pdeclaration(const char *name, declaration *dec, int tab,
  14. const char *separator);
  15. void print_xdr_func_def (char* name, int pointerp, int i);
  16. /****** rpc_main.c ******/
  17. /* nil */
  18. /****** rpc_parse.c ******/
  19. definition *get_definition(void);
  20. /****** rpc_sample.c ******/
  21. void write_sample_svc(definition *def);
  22. int write_sample_clnt(definition *def);
  23. void add_sample_msg(void);
  24. void write_sample_clnt_main(void);
  25. /****** rpc_scan.c ******/
  26. /* see rpc_scan.h */
  27. /****** rpc_svcout.c ******/
  28. int nullproc(const proc_list *proc);
  29. void write_svc_aux(int nomain);
  30. void write_msg_out(void);
  31. /****** rpc_tblout.c ******/
  32. void write_tables(void);
  33. /****** rpc_util.c ******/
  34. void reinitialize(void);
  35. int streq(const char *a, const char *b);
  36. void error(const char *msg) __attribute__ ((noreturn));
  37. void crash(void) __attribute__ ((noreturn));
  38. void tabify(FILE *f, int tab);
  39. char *make_argname(const char *pname, const char *vname);
  40. void add_type(int len, const char *type);
  41. /* This header is the last one included in all rpc_*.c files,
  42. so we define stuff for cross-rpcgen here to avoid conflicts with
  43. $build's C library and $host's glibc. */
  44. #ifdef IS_IN_build
  45. /* Disable translated messages when built for $build and used in
  46. building glibc. */
  47. #define _(X) (X)
  48. #define textdomain(X) ((void) 0)
  49. #endif