File: bonobo-object-directory.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 (70 lines) | stat: -rw-r--r-- 2,760 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
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 c-set-style: linux -*- */
/**
 * bonobo-object-directory.c: abstract the object directory
 *
 * Authors:
 *    Havoc Pennington  (hp@redhat.com)
 *    Anders Carlsson   (andersca@gnu.org)
 *    Maciej Stachowiak (mjs@eazel.com)
 *
 * Copyright 1999, 2000 Havoc Pennington, Anders Carlsson,
 *                      Eazel, Inc.
 */
#ifndef __BONOBO_OBJECT_DIRECTORY_H__
#define __BONOBO_OBJECT_DIRECTORY_H__

#include <glib.h>
#include <libgnome/gnome-defs.h>
#include <orb/orbit.h>
#include <ORBitservices/CosNaming.h>

BEGIN_GNOME_DECLS

/*
 * This file used to provide a compatibility abstraction for the
 * Gnorba -> Oaf transition. This is now complete, hence these
 * functions are deprecated in favour of the oaf equivalents.
 */

typedef struct _ODServerInfo ODServerInfo;

typedef enum {
        OD_REG_SUCCESS,
        OD_REG_NOT_LISTED,
        OD_REG_ALREADY_ACTIVE,
        OD_REG_ERROR
} ODRegistrationResult;

CORBA_ORB            bonobo_directory_get_orb                     (void);

ODServerInfo        *bonobo_directory_new_server_info             (const gchar       *iid,
						     const gchar       *name,
                                                     const gchar       *desc);
const gchar         *bonobo_directory_get_server_info_id          (ODServerInfo      *info);
const gchar         *bonobo_directory_get_server_info_name        (ODServerInfo      *info);
const gchar         *bonobo_directory_get_server_info_description (ODServerInfo      *info);
void                 bonobo_directory_server_info_ref             (ODServerInfo      *info);
void                 bonobo_directory_server_info_unref           (ODServerInfo      *info);

/* returns list of ODServerInfo */
GList               *bonobo_directory_get_server_list             (const gchar      **required_ids);
void                 bonobo_directory_free_server_list            (GList             *list);
CORBA_Object         od_server_activate_with_id     (const gchar       *iid,
						     gint               flags,
                                                     CORBA_Environment *ev);
ODRegistrationResult bonobo_directory_register_server             (CORBA_Object       objref,
                                                     const gchar       *iid);
ODRegistrationResult bonobo_directory_unregister_server           (CORBA_Object       objref,
						     const gchar       *iid);

CORBA_Object         bonobo_directory_get_name_service            (CORBA_Environment *ev);

char                *bonobo_directory_find_for_file (const char  *fname,
						     const char **required_ids,
						     char       **error);

END_GNOME_DECLS

#endif /* __BONOBO_OBJECT_DIRECTORY_H__ */