| 1 | #ifndef ORBIT_IDL_C_BACKEND_H
|
|---|
| 2 | #define ORBIT_IDL_C_BACKEND_H
|
|---|
| 3 |
|
|---|
| 4 | #include "orbit-idl2.h"
|
|---|
| 5 |
|
|---|
| 6 | #include <unistd.h>
|
|---|
| 7 |
|
|---|
| 8 | #define OIDL_C_WARNING "/*\n * This file was generated by orbit-idl-2 for Voyager - DO NOT EDIT!\n *\n *\n * And remember, phase 3 is near...\n */\n\n"
|
|---|
| 9 |
|
|---|
| 10 | typedef struct {
|
|---|
| 11 | char *base_name;
|
|---|
| 12 | char *c_base_name;
|
|---|
| 13 | FILE *fh;
|
|---|
| 14 | GString *ext_dcls;
|
|---|
| 15 | gboolean do_impl_hack;
|
|---|
| 16 | gboolean do_skel_defs;
|
|---|
| 17 | } OIDL_C_Info;
|
|---|
| 18 |
|
|---|
| 19 | gboolean orbit_idl_output_c (IDL_tree tree,
|
|---|
| 20 | OIDL_Run_Info *rinfo);
|
|---|
| 21 | void orbit_idl_output_c_headers (IDL_tree tree,
|
|---|
| 22 | OIDL_Run_Info *rinfo,
|
|---|
| 23 | OIDL_C_Info *ci);
|
|---|
| 24 | void orbit_idl_output_c_stubs (IDL_tree tree,
|
|---|
| 25 | OIDL_Run_Info *rinfo,
|
|---|
| 26 | OIDL_C_Info *ci);
|
|---|
| 27 | void orbit_idl_output_c_skeletons (IDL_tree tree,
|
|---|
| 28 | OIDL_Run_Info *rinfo,
|
|---|
| 29 | OIDL_C_Info *ci);
|
|---|
| 30 | void orbit_idl_output_c_common (IDL_tree tree,
|
|---|
| 31 | OIDL_Run_Info *rinfo,
|
|---|
| 32 | OIDL_C_Info *ci);
|
|---|
| 33 | void orbit_idl_output_c_skelimpl (IDL_tree tree,
|
|---|
| 34 | OIDL_Run_Info *rinfo,
|
|---|
| 35 | OIDL_C_Info *ci);
|
|---|
| 36 | void orbit_idl_output_c_imodule (IDL_tree tree,
|
|---|
| 37 | OIDL_Run_Info *rinfo,
|
|---|
| 38 | OIDL_C_Info *ci);
|
|---|
| 39 | void orbit_idl_output_c_deps (IDL_tree tree,
|
|---|
| 40 | OIDL_Run_Info *rinfo,
|
|---|
| 41 | OIDL_C_Info *ci);
|
|---|
| 42 |
|
|---|
| 43 | void orbit_output_typecode (OIDL_C_Info *ci, IDL_tree ts);
|
|---|
| 44 |
|
|---|
| 45 | char *orbit_idl_c_filename_for_pass (const char *input_filename, int pass);
|
|---|
| 46 |
|
|---|
| 47 | /* utils */
|
|---|
| 48 | char *orbit_cbe_get_typespec_str (IDL_tree tree);
|
|---|
| 49 | void orbit_cbe_write_typespec (FILE *of,
|
|---|
| 50 | IDL_tree tree);
|
|---|
| 51 | void orbit_cbe_write_param_typespec (FILE *of,
|
|---|
| 52 | IDL_tree tree);
|
|---|
| 53 | void orbit_cbe_op_write_proto (FILE *of,
|
|---|
| 54 | IDL_tree op,
|
|---|
| 55 | const char *nom_prefix,
|
|---|
| 56 | gboolean for_epv);
|
|---|
| 57 | IDL_tree orbit_cbe_get_typespec (IDL_tree tree);
|
|---|
| 58 | void orbit_cbe_write_const (FILE *of,
|
|---|
| 59 | IDL_tree tree);
|
|---|
| 60 | gboolean orbit_cbe_type_is_fixed_length (IDL_tree ts);
|
|---|
| 61 | gboolean orbit_cbe_type_is_builtin (IDL_tree tree);
|
|---|
| 62 | void orbit_cbe_id_define_hack (FILE *fh,
|
|---|
| 63 | const char *def_prefix,
|
|---|
| 64 | const char *def_name,
|
|---|
| 65 | const char *def_value);
|
|---|
| 66 | void orbit_cbe_id_cond_hack (FILE *fh,
|
|---|
| 67 | const char *def_prefix,
|
|---|
| 68 | const char *def_name,
|
|---|
| 69 | const char *def_value);
|
|---|
| 70 | char *orbit_cbe_get_typecode_name (IDL_tree tree);
|
|---|
| 71 | void orbit_cbe_flatten_args (IDL_tree tree,
|
|---|
| 72 | FILE *of,
|
|---|
| 73 | const char *name);
|
|---|
| 74 | void orbit_cbe_unflatten_args (IDL_tree tree,
|
|---|
| 75 | FILE *of,
|
|---|
| 76 | const char *name);
|
|---|
| 77 | gulong orbit_cbe_get_typespec_size(IDL_tree tree);
|
|---|
| 78 |
|
|---|
| 79 | void orbit_cbe_voyager_write_param_typespec(FILE *of, IDL_tree tree);
|
|---|
| 80 | #endif
|
|---|