widl.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. /*
  2. * IDL Compiler
  3. *
  4. * Copyright 2002 Ove Kaaven
  5. *
  6. * This library is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 2.1 of the License, or (at your option) any later version.
  10. *
  11. * This library is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public
  17. * License along with this library; if not, write to the Free Software
  18. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  19. */
  20. #ifndef __WIDL_WIDL_H
  21. #define __WIDL_WIDL_H
  22. #include "widltypes.h"
  23. #include <time.h>
  24. extern int debuglevel;
  25. #define DEBUGLEVEL_NONE 0x0000
  26. #define DEBUGLEVEL_CHAT 0x0001
  27. #define DEBUGLEVEL_DUMP 0x0002
  28. #define DEBUGLEVEL_TRACE 0x0004
  29. #define DEBUGLEVEL_PPMSG 0x0008
  30. #define DEBUGLEVEL_PPLEX 0x0010
  31. #define DEBUGLEVEL_PPTRACE 0x0020
  32. extern int pedantic;
  33. extern int do_everything;
  34. extern int do_header;
  35. extern int do_typelib;
  36. extern int do_proxies;
  37. extern int do_client;
  38. extern int do_server;
  39. extern int do_regscript;
  40. extern int do_idfile;
  41. extern int do_dlldata;
  42. extern int old_names;
  43. extern int win32_packing;
  44. extern int win64_packing;
  45. extern int winrt_mode;
  46. extern int use_abi_namespace;
  47. extern char *input_name;
  48. extern char *input_idl_name;
  49. extern char *acf_name;
  50. extern char *header_name;
  51. extern char *header_token;
  52. extern char *local_stubs_name;
  53. extern char *typelib_name;
  54. extern char *dlldata_name;
  55. extern char *proxy_name;
  56. extern char *proxy_token;
  57. extern char *client_name;
  58. extern char *client_token;
  59. extern char *server_name;
  60. extern char *server_token;
  61. extern char *regscript_name;
  62. extern char *regscript_token;
  63. extern const char *prefix_client;
  64. extern const char *prefix_server;
  65. extern unsigned int pointer_size;
  66. extern time_t now;
  67. extern int line_number;
  68. extern int char_number;
  69. enum target_cpu
  70. {
  71. CPU_x86, CPU_x86_64, CPU_POWERPC, CPU_ARM, CPU_ARM64, CPU_POWERPC64, CPU_LAST = CPU_POWERPC64
  72. };
  73. extern enum target_cpu target_cpu;
  74. enum stub_mode
  75. {
  76. MODE_Os, /* inline stubs */
  77. MODE_Oi, /* old-style interpreted stubs */
  78. MODE_Oif /* new-style fully interpreted stubs */
  79. };
  80. extern enum stub_mode get_stub_mode(void);
  81. extern void write_header(const statement_list_t *stmts);
  82. extern void write_id_data(const statement_list_t *stmts);
  83. extern void write_proxies(const statement_list_t *stmts);
  84. extern void write_client(const statement_list_t *stmts);
  85. extern void write_server(const statement_list_t *stmts);
  86. extern void write_regscript(const statement_list_t *stmts);
  87. extern void write_typelib_regscript(const statement_list_t *stmts);
  88. extern void output_typelib_regscript( const typelib_t *typelib );
  89. extern void write_local_stubs(const statement_list_t *stmts);
  90. extern void write_dlldata(const statement_list_t *stmts);
  91. extern void start_cplusplus_guard(FILE *fp);
  92. extern void end_cplusplus_guard(FILE *fp);
  93. #endif