{
char *fullname;
fullname = forb_cbe_get_typespec_str(tree);
- fprintf(ci->fh, "struct forb_%s_implementation {\n", fullname);
+ fprintf(ci->fh, "struct forb_%s_impl {\n", fullname);
ch_output_impl_struct_members(tree, rinfo, ci);
fprintf(ci->fh, "};\n\n");
g_free(fullname);
fprintf(ci->fh, "void forb_register_%s_interface(void);\n", fullname);
fprintf(ci->fh, "%s forb_%s_new(void *instance_data,\n"
- " const struct forb_%s_implementation *impl);\n\n",
+ " const struct forb_%s_impl *impl);\n\n",
fullname, fullname, fullname);
/* ch_type_alloc_and_tc(tree, rinfo, ci, FALSE); */
id = IDL_ns_ident_to_qstring(IDL_IDENT_TO_NS(IDL_INTERFACE(tree).ident), "_", 0);
- fprintf(ci->fh, "#define _%s_impl(obj) ((struct forb_%s_implementation*)(obj)->implementation)\n\n", id, id);
+ fprintf(ci->fh, "#define _%s_impl(obj) ((struct forb_%s_impl*)(obj)->implementation)\n\n", id, id);
fprintf(ci->fh, "static const struct forb_interface %s_interface;\n\n", id);
for(sub = IDL_INTERFACE(tree).body; sub; sub = IDL_LIST(sub).next) {
"}\n\n", id, id);
fprintf(ci->fh, "%s forb_%s_new(void *instance_data, "
- "const struct forb_%s_implementation *impl)\n"
+ "const struct forb_%s_impl *impl)\n"
"{\n"
" %s obj = forb_malloc(sizeof(*obj));\n"
" if (obj) {\n"
int real_idx = 0;
char *id;
id = IDL_ns_ident_to_qstring (IDL_INTERFACE (tree).ident, "_", 0);
- fprintf(ci->fh, "#define _%s_impl(obj) ((struct forb_%s_implementation*)(obj)->implementation)\n\n",
+ fprintf(ci->fh, "#define _%s_impl(obj) ((struct forb_%s_impl*)(obj)->implementation)\n\n",
id, id);
g_free(id);
cs_output_stubs (IDL_INTERFACE (tree).body, ci, &real_idx);
printf("Hello object received: %s\n", msg);
}
-static const struct forb_hello_implementation impl = {
+static const struct forb_hello_impl impl = {
message
};