1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ |
---|
2 | /** |
---|
3 | * bonobo-object-client.c: |
---|
4 | * This handles the client-view of a remote Bonobo object. |
---|
5 | * |
---|
6 | * Author: |
---|
7 | * Miguel de Icaza (miguel@kernel.org) |
---|
8 | * |
---|
9 | * Copyright 1999 Helix Code, Inc. |
---|
10 | */ |
---|
11 | #ifndef _BONOBO_OBJECT_CLIENT_H_ |
---|
12 | #define _BONOBO_OBJECT_CLIENT_H_ |
---|
13 | |
---|
14 | #include <libgnome/gnome-defs.h> |
---|
15 | #include <gtk/gtkobject.h> |
---|
16 | #include <bonobo/Bonobo.h> |
---|
17 | #include <bonobo/bonobo-object.h> |
---|
18 | |
---|
19 | #define BONOBO_OBJECT_CLIENT_TYPE (bonobo_object_client_get_type ()) |
---|
20 | #define BONOBO_OBJECT_CLIENT(o) (GTK_CHECK_CAST ((o), BONOBO_OBJECT_CLIENT_TYPE, BonoboObjectClient)) |
---|
21 | #define BONOBO_OBJECT_CLIENT_CLASS(k) (GTK_CHECK_CLASS_CAST((k), BONOBO_OBJECT_CLIENT_TYPE, BonoboObjectClientClass)) |
---|
22 | #define BONOBO_IS_OBJECT_CLIENT(o) (GTK_CHECK_TYPE ((o), BONOBO_OBJECT_CLIENT_TYPE)) |
---|
23 | #define BONOBO_IS_OBJECT_CLIENT_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), BONOBO_OBJECT_CLIENT_TYPE)) |
---|
24 | |
---|
25 | typedef struct { |
---|
26 | BonoboObject parent; |
---|
27 | } BonoboObjectClient; |
---|
28 | |
---|
29 | typedef struct { |
---|
30 | BonoboObjectClass parent_class; |
---|
31 | } BonoboObjectClientClass; |
---|
32 | |
---|
33 | typedef void (*BonoboObjectClientAsyncCallback) (BonoboObjectClient *o, |
---|
34 | const char *error, |
---|
35 | gpointer user_data); |
---|
36 | GtkType bonobo_object_client_get_type (void); |
---|
37 | BonoboObjectClient *bonobo_object_client_from_corba (Bonobo_Unknown o); |
---|
38 | BonoboObjectClient *bonobo_object_client_construct (BonoboObjectClient *object_client, |
---|
39 | CORBA_Object corba_object); |
---|
40 | BonoboObjectClient *bonobo_object_activate (const char *iid, |
---|
41 | gint oaf_flags); |
---|
42 | void bonobo_object_activate_async (const char *iid, |
---|
43 | gint oaf_flags, |
---|
44 | BonoboObjectClientAsyncCallback callback, |
---|
45 | gpointer user_data); |
---|
46 | /* Convenience Bonobo_Unknown wrappers */ |
---|
47 | gboolean bonobo_object_client_has_interface (BonoboObjectClient *object, |
---|
48 | const char *interface_desc, |
---|
49 | CORBA_Environment *opt_ev); |
---|
50 | Bonobo_Unknown bonobo_object_client_query_interface (BonoboObjectClient *object, |
---|
51 | const char *interface_desc, |
---|
52 | CORBA_Environment *opt_ev); |
---|
53 | void bonobo_object_client_ref (BonoboObjectClient *object_client, |
---|
54 | BonoboObject *opt_exception_obj); |
---|
55 | void bonobo_object_client_unref (BonoboObjectClient *object_client, |
---|
56 | BonoboObject *opt_exception_obj); |
---|
57 | |
---|
58 | #endif /* _BONOBO_OBJECT_CLIENT_H_ */ |
---|
59 | |
---|