File: bonobo-moniker-util.h

package info (click to toggle)
bonobo 1.0.22-2.2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 13,412 kB
  • ctags: 5,445
  • sloc: ansic: 51,714; sh: 7,733; makefile: 1,425; yacc: 318; xml: 266; sed: 16
file content (103 lines) | stat: -rw-r--r-- 4,191 bytes parent folder | download | duplicates (2)
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
/*
 * bonobo-moniker-util.h
 *
 * Copyright (C) 2000  Helix Code, Inc.
 *
 * Authors:
 *	Michael Meeks    (michael@helixcode.com)
 *	Ettore Perazzoli (ettore@helixcode.com)
 */

#ifndef _BONOBO_MONIKER_UTIL_H
#define _BONOBO_MONIKER_UTIL_H

#include <bonobo/bonobo-async.h>
#include <bonobo/bonobo-object-client.h>

/* Useful client functions */
Bonobo_Unknown      bonobo_get_object                            (const CORBA_char        *name,      
								  const char              *interface_name,
								  CORBA_Environment       *ev);


Bonobo_Moniker      bonobo_moniker_client_new_from_name          (const CORBA_char        *name,
								  CORBA_Environment       *ev);

CORBA_char         *bonobo_moniker_client_get_name               (Bonobo_Moniker     moniker,
								  CORBA_Environment *ev);

Bonobo_Unknown      bonobo_moniker_client_resolve_default        (Bonobo_Moniker     moniker,
								  const char        *interface_name,
								  CORBA_Environment *ev);
BonoboObjectClient *bonobo_moniker_client_resolve_client_default (Bonobo_Moniker     moniker,
								  const char        *interface_name,
								  CORBA_Environment *ev);

gboolean            bonobo_moniker_client_equal                  (Bonobo_Moniker     moniker,
								  const CORBA_char  *name,
								  CORBA_Environment *opt_ev);

typedef void (*BonoboMonikerAsyncFn) (Bonobo_Unknown     object,
				      CORBA_Environment *ev,
				      gpointer           user_data);
/* Async equivalents */

void                bonobo_get_object_async                      (const CORBA_char        *name,
								  const char              *interface_name,
								  CORBA_Environment       *ev,
								  guint                    timeout_msec,
								  BonoboMonikerAsyncFn     cb,
								  gpointer                 user_data);

void                bonobo_moniker_client_new_from_name_async    (const CORBA_char        *name,
								  CORBA_Environment       *ev,
								  guint                    timeout_msec,
								  BonoboMonikerAsyncFn     cb,
								  gpointer                 user_data);

void                bonobo_moniker_resolve_async                 (Bonobo_Moniker           moniker,
								  Bonobo_ResolveOptions   *options,
								  const char              *interface_name,
								  CORBA_Environment       *ev,
								  guint                    timeout_msec,
								  BonoboMonikerAsyncFn     cb,
								  gpointer                 user_data);

void                bonobo_moniker_resolve_async_default         (Bonobo_Moniker           moniker,
								  const char              *interface_name,
								  CORBA_Environment       *ev,
								  guint                    timeout_msec,
								  BonoboMonikerAsyncFn     cb,
								  gpointer                 user_data);

/* Useful moniker implementation helper functions */
Bonobo_Moniker bonobo_moniker_util_new_from_name_full   (Bonobo_Moniker     parent,
							 const CORBA_char  *name,
							 CORBA_Environment *ev);
CORBA_char    *bonobo_moniker_util_get_parent_name      (Bonobo_Moniker     moniker,
							 CORBA_Environment *ev);
Bonobo_Unknown bonobo_moniker_util_qi_return            (Bonobo_Unknown     object,
							 const CORBA_char  *requested_interface,
							 CORBA_Environment *ev);
int            bonobo_moniker_util_seek_std_separator   (const CORBA_char  *str,
							 int                min_idx);
char          *bonobo_moniker_util_escape               (const char        *string,
							 int                offset);
char          *bonobo_moniker_util_unescape             (const char        *string,
							 int                num_chars);

void           bonobo_url_register                      (char              *oafiid, 
							 char              *url, 
							 char              *mime_type,
							 Bonobo_Unknown     object,
							 CORBA_Environment *ev);

void           bonobo_url_unregister                    (char              *oafiid, 
							 char              *url,
							 CORBA_Environment *ev);

Bonobo_Unknown bonobo_url_lookup                        (char              *oafiid,
							 char              *url,
							 CORBA_Environment *ev);
					   
#endif /* _BONOBO_MONIKER_UTIL_H */