Utilities

Name

Utilities -- Random misc utilities to manipulate Bonobo_ServerInfo structures.

Synopsis


#include <bonobo-activation/bonobo-activation.h>


enum        Bonobo_ActivationPropertyType;
Bonobo_ActivationProperty* bonobo_server_info_prop_find
                                            (Bonobo_ServerInfo *server,
                                             const char *prop_name);
Bonobo_ActivationID bonobo_activation_info_stringify
                                            (const BonoboActivationInfo *actinfo);
BonoboActivationInfo* bonobo_activation_servinfo_to_actinfo
                                            (const Bonobo_ServerInfo *servinfo);
BonoboActivationInfo* bonobo_activation_id_parse
                                            (const CORBA_char *actid);
BonoboActivationInfo* bonobo_activation_info_new
                                            (void);
void        bonobo_activation_info_free     (BonoboActivationInfo *actinfo);
Bonobo_ServerInfo* Bonobo_ServerInfo_duplicate
                                            (const Bonobo_ServerInfo *original);

Description

Details

enum Bonobo_ActivationPropertyType

   typedef enum
   {
      Bonobo_ACTIVATION_P_STRING,
      Bonobo_ACTIVATION_P_NUMBER,
      Bonobo_ACTIVATION_P_BOOLEAN,
      Bonobo_ACTIVATION_P_STRINGV
   }
   Bonobo_ActivationPropertyType;


bonobo_server_info_prop_find ()

Bonobo_ActivationProperty* bonobo_server_info_prop_find
                                            (Bonobo_ServerInfo *server,
                                             const char *prop_name);

Tries to find a server with the given property. Returns NULL if not found.


bonobo_activation_info_stringify ()

Bonobo_ActivationID bonobo_activation_info_stringify
                                            (const BonoboActivationInfo *actinfo);

Serializes actinfo into a char *. Should be freed with g_free().


bonobo_activation_servinfo_to_actinfo ()

BonoboActivationInfo* bonobo_activation_servinfo_to_actinfo
                                            (const Bonobo_ServerInfo *servinfo);

This function converts a Bonobo_ServerInfo structure to a BonoboActivationInfo structure. The returned structure should be freed with bonobo_activation_info_free.


bonobo_activation_id_parse ()

BonoboActivationInfo* bonobo_activation_id_parse
                                            (const CORBA_char *actid);

Returns a pointer to a newly allocated BonoboActivationInfo structure (to be freed with bonobo_activation_info_free) initialized with the data of actid.


bonobo_activation_info_new ()

BonoboActivationInfo* bonobo_activation_info_new
                                            (void);

This function allocates a BonoboActicationInfo structure and returns it. Should NOT be called from outside of this code.


bonobo_activation_info_free ()

void        bonobo_activation_info_free     (BonoboActivationInfo *actinfo);

Frees actinfo.


Bonobo_ServerInfo_duplicate ()

Bonobo_ServerInfo* Bonobo_ServerInfo_duplicate
                                            (const Bonobo_ServerInfo *original);

The return value should befreed with CORBA_free().