1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ |
---|
2 | /** |
---|
3 | * bonobo-shlib-factory.h: a ShlibFactory object. |
---|
4 | * |
---|
5 | * Author: |
---|
6 | * Michael Meeks (michael@helixcode.com) |
---|
7 | * |
---|
8 | * Copyright 2000 Helix Code, Inc. |
---|
9 | */ |
---|
10 | #ifndef _BONOBO_SHLIB_FACTORY_H_ |
---|
11 | #define _BONOBO_SHLIB_FACTORY_H_ |
---|
12 | |
---|
13 | #include <libgnome/gnome-defs.h> |
---|
14 | #include <gtk/gtkobject.h> |
---|
15 | #include <bonobo/Bonobo.h> |
---|
16 | #include <bonobo/bonobo-object.h> |
---|
17 | #include <liboaf/oaf.h> |
---|
18 | #include <bonobo/bonobo-generic-factory.h> |
---|
19 | |
---|
20 | BEGIN_GNOME_DECLS |
---|
21 | |
---|
22 | #define BONOBO_SHLIB_FACTORY_TYPE (bonobo_shlib_factory_get_type ()) |
---|
23 | #define BONOBO_SHLIB_FACTORY(o) (GTK_CHECK_CAST ((o), BONOBO_SHLIB_FACTORY_TYPE, BonoboShlibFactory)) |
---|
24 | #define BONOBO_SHLIB_FACTORY_CLASS(k) (GTK_CHECK_CLASS_CAST((k), BONOBO_SHLIB_FACTORY_TYPE, BonoboShlibFactoryClass)) |
---|
25 | #define BONOBO_IS_SHLIB_FACTORY(o) (GTK_CHECK_TYPE ((o), BONOBO_SHLIB_FACTORY_TYPE)) |
---|
26 | #define BONOBO_IS_SHLIB_FACTORY_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), BONOBO_SHLIB_FACTORY_TYPE)) |
---|
27 | |
---|
28 | typedef struct _BonoboShlibFactoryPrivate BonoboShlibFactoryPrivate; |
---|
29 | |
---|
30 | typedef struct { |
---|
31 | BonoboGenericFactory base; |
---|
32 | |
---|
33 | int live_objects; |
---|
34 | gpointer oaf_impl_ptr; |
---|
35 | |
---|
36 | BonoboShlibFactoryPrivate *priv; |
---|
37 | } BonoboShlibFactory; |
---|
38 | |
---|
39 | typedef struct { |
---|
40 | BonoboGenericFactoryClass parent_class; |
---|
41 | } BonoboShlibFactoryClass; |
---|
42 | |
---|
43 | GtkType bonobo_shlib_factory_get_type (void); |
---|
44 | |
---|
45 | BonoboShlibFactory *bonobo_shlib_factory_construct ( |
---|
46 | BonoboShlibFactory *c_factory, |
---|
47 | const char *component_id, |
---|
48 | PortableServer_POA poa, |
---|
49 | gpointer oaf_impl_ptr, |
---|
50 | CORBA_Object corba_factory, |
---|
51 | BonoboGenericFactoryFn factory, |
---|
52 | GnomeFactoryCallback factory_cb, |
---|
53 | void *data); |
---|
54 | |
---|
55 | BonoboShlibFactory *bonobo_shlib_factory_new ( |
---|
56 | const char *component_id, |
---|
57 | PortableServer_POA poa, |
---|
58 | gpointer oaf_impl_ptr, |
---|
59 | BonoboGenericFactoryFn factory, |
---|
60 | gpointer user_data); |
---|
61 | |
---|
62 | BonoboShlibFactory *bonobo_shlib_factory_new_multi ( |
---|
63 | const char *component_id, |
---|
64 | PortableServer_POA poa, |
---|
65 | gpointer oaf_impl_ptr, |
---|
66 | GnomeFactoryCallback factory_cb, |
---|
67 | gpointer user_data); |
---|
68 | |
---|
69 | void bonobo_shlib_factory_track_object ( |
---|
70 | BonoboShlibFactory *factory, |
---|
71 | BonoboObject *object); |
---|
72 | |
---|
73 | void bonobo_shlib_factory_inc_live ( |
---|
74 | BonoboShlibFactory *factory); |
---|
75 | |
---|
76 | void bonobo_shlib_factory_dec_live ( |
---|
77 | BonoboShlibFactory *factory); |
---|
78 | |
---|
79 | END_GNOME_DECLS |
---|
80 | |
---|
81 | #endif |
---|