/usr/include/libbonobo-2.0/bonobo/bonobo-generic-factory.h is in libbonobo2-dev 2.32.1-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* bonobo-generic-factory.h: a GenericFactory object.
*
* Author:
* Miguel de Icaza (miguel@kernel.org)
* ÉRDI Gergõ (cactus@cactus.rulez.org): cleanup
*
* Copyright 1999, 2001 Ximian, Inc., 2001 Gergõ Érdi
*/
#ifndef _BONOBO_GENERIC_FACTORY_H_
#define _BONOBO_GENERIC_FACTORY_H_
#include <bonobo/bonobo-object.h>
#include <bonobo/bonobo-i18n.h>
G_BEGIN_DECLS
#define BONOBO_TYPE_GENERIC_FACTORY (bonobo_generic_factory_get_type ())
#define BONOBO_GENERIC_FACTORY_TYPE BONOBO_TYPE_GENERIC_FACTORY /* deprecated, you should use BONOBO_TYPE_GENERIC_FACTORY */
#define BONOBO_GENERIC_FACTORY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), BONOBO_TYPE_GENERIC_FACTORY, BonoboGenericFactory))
#define BONOBO_GENERIC_FACTORY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), BONOBO_TYPE_GENERIC_FACTORY, BonoboGenericFactoryClass))
#define BONOBO_IS_GENERIC_FACTORY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), BONOBO_TYPE_GENERIC_FACTORY))
#define BONOBO_IS_GENERIC_FACTORY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), BONOBO_TYPE_GENERIC_FACTORY))
typedef struct _BonoboGenericFactoryPrivate BonoboGenericFactoryPrivate;
typedef struct _BonoboGenericFactory BonoboGenericFactory;
typedef BonoboObject * (*BonoboFactoryCallback) (BonoboGenericFactory *factory,
const char *component_id,
gpointer closure);
struct _BonoboGenericFactory {
BonoboObject base;
BonoboGenericFactoryPrivate *priv;
};
typedef struct {
BonoboObjectClass parent_class;
POA_Bonobo_GenericFactory__epv epv;
BonoboObject *(*new_generic) (BonoboGenericFactory *factory,
const char *act_iid);
} BonoboGenericFactoryClass;
GType bonobo_generic_factory_get_type (void) G_GNUC_CONST;
BonoboGenericFactory *bonobo_generic_factory_new (const char *act_iid,
BonoboFactoryCallback factory_cb,
gpointer user_data);
BonoboGenericFactory *bonobo_generic_factory_new_closure (const char *act_iid,
GClosure *factory_closure);
BonoboGenericFactory *bonobo_generic_factory_construct (BonoboGenericFactory *factory,
const char *act_iid,
GClosure *factory_closure);
void bonobo_generic_factory_construct_noreg (BonoboGenericFactory *factory,
const char *act_iid,
GClosure *factory_closure);
int bonobo_generic_factory_main (const char *act_iid,
BonoboFactoryCallback factory_cb,
gpointer user_data);
int bonobo_generic_factory_main_timeout (const char *act_iid,
BonoboFactoryCallback factory_cb,
gpointer user_data,
guint quit_timeout);
#if defined (__BONOBO_UI_MAIN_H__) || defined (LIBBONOBOUI_H)
#define BONOBO_FACTORY_INIT(descr, version, argcp, argv) \
if (!bonobo_ui_init (descr, version, argcp, argv)) \
g_error ("Could not initialize Bonobo");
#else
#define BONOBO_FACTORY_INIT(desc, version, argcp, argv) \
if (!bonobo_init (argcp, argv)) \
g_error ("Could not initialize Bonobo");
#endif
#define BONOBO_OAF_FACTORY(oafiid, descr, version, callback, data) \
BONOBO_ACTIVATION_FACTORY(oafiid, descr, version, callback, data)
#define BONOBO_OAF_FACTORY_MULTI(oafiid, descr, version, callback, data) \
BONOBO_ACTIVATION_FACTORY(oafiid, descr, version, callback, data)
#define BONOBO_ACTIVATION_FACTORY(oafiid, descr, version, callback, data) \
int main (int argc, char *argv []) \
{ \
g_thread_init (NULL); \
\
BONOBO_FACTORY_INIT (descr, version, &argc, argv); \
\
return bonobo_generic_factory_main (oafiid, callback, data); \
}
#define BONOBO_ACTIVATION_FACTORY_TIMEOUT(oafiid, descr, version, callback, data, quit_timeout) \
int main (int argc, char *argv []) \
{ \
g_thread_init (NULL); \
\
BONOBO_FACTORY_INIT (descr, version, &argc, argv); \
\
return bonobo_generic_factory_main_timeout (oafiid, callback, data, quit_timeout); \
}
G_END_DECLS
#endif
|