1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ |
---|
2 | /* |
---|
3 | * bonobo-moniker-simple: Simplified object naming abstraction |
---|
4 | * |
---|
5 | * Author: |
---|
6 | * Michael Meeks (michael@helixcode.com) |
---|
7 | * |
---|
8 | * Copyright 2000, Helix Code, Inc. |
---|
9 | */ |
---|
10 | #ifndef _BONOBO_MONIKER_SIMPLE_SIMPLE_H_ |
---|
11 | #define _BONOBO_MONIKER_SIMPLE_SIMPLE_H_ |
---|
12 | |
---|
13 | #include <bonobo/bonobo-moniker.h> |
---|
14 | |
---|
15 | BEGIN_GNOME_DECLS |
---|
16 | |
---|
17 | #define BONOBO_MONIKER_SIMPLE_TYPE (bonobo_moniker_simple_get_type ()) |
---|
18 | #define BONOBO_MONIKER_SIMPLE(o) (GTK_CHECK_CAST ((o), BONOBO_MONIKER_SIMPLE_TYPE, BonoboMonikerSimple)) |
---|
19 | #define BONOBO_MONIKER_SIMPLE_CLASS(k) (GTK_CHECK_CLASS_CAST((k), BONOBO_MONIKER_SIMPLE_TYPE, BonoboMonikerSimpleClass)) |
---|
20 | #define BONOBO_IS_MONIKER_SIMPLE(o) (GTK_CHECK_TYPE ((o), BONOBO_MONIKER_SIMPLE_TYPE)) |
---|
21 | #define BONOBO_IS_MONIKER_SIMPLE_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), BONOBO_MONIKER_SIMPLE_TYPE)) |
---|
22 | |
---|
23 | typedef struct _BonoboMonikerSimple BonoboMonikerSimple; |
---|
24 | typedef struct _BonoboMonikerSimplePrivate BonoboMonikerSimplePrivate; |
---|
25 | |
---|
26 | typedef Bonobo_Unknown (*BonoboMonikerSimpleResolveFn) (BonoboMoniker *moniker, |
---|
27 | const Bonobo_ResolveOptions *options, |
---|
28 | const CORBA_char *requested_interface, |
---|
29 | CORBA_Environment *ev); |
---|
30 | |
---|
31 | |
---|
32 | struct _BonoboMonikerSimple { |
---|
33 | BonoboMoniker moniker; |
---|
34 | BonoboMonikerSimpleResolveFn resolve_fn; |
---|
35 | BonoboMonikerSimplePrivate *priv; |
---|
36 | }; |
---|
37 | |
---|
38 | typedef struct { |
---|
39 | BonoboMonikerClass parent_class; |
---|
40 | } BonoboMonikerSimpleClass; |
---|
41 | |
---|
42 | GtkType bonobo_moniker_simple_get_type (void); |
---|
43 | |
---|
44 | BonoboMoniker *bonobo_moniker_simple_construct (BonoboMonikerSimple *moniker, |
---|
45 | const char *name, |
---|
46 | BonoboMonikerSimpleResolveFn resolve_fn); |
---|
47 | |
---|
48 | BonoboMoniker *bonobo_moniker_simple_new (const char *name, |
---|
49 | BonoboMonikerSimpleResolveFn resolve_fn); |
---|
50 | |
---|
51 | |
---|
52 | END_GNOME_DECLS |
---|
53 | |
---|
54 | #endif /* _BONOBO_MONIKER_SIMPLE_H_ */ |
---|
55 | |
---|