Galago - desktop presence framework

galago-context-priv.h File Reference

Galago Context Private API. More...

#include <libgalago/galago-person.h>
#include <libgalago/galago-service.h>

Go to the source code of this file.


Galago Context API

void galago_context_set_ops (GalagoContext *context, GalagoContextOps *ops)
 Sets the context ops to use for a context.
void galago_context_add_service (GalagoService *service)
 Adds a service to the context's services cache.
void galago_context_remove_service (GalagoService *service)
 Removes a service from the context's services cache.
void galago_context_add_person (GalagoPerson *person)
 Adds a person to the context's person cache.
void galago_context_remove_person (GalagoPerson *person)
 Removes a person from the context's person cache.
void galago_context_add_object (void *obj)
 Adds an object to the internal object tree.
void galago_context_remove_object (void *obj)
 Removes an object from the internal object tree.
void galago_context_clear_objects (galago_bool native)
 Clears all native or foreign objects from the context.

Typedefs

typedef _GalagoContextOps GalagoContextOps

Detailed Description

Galago Context Private API.

Copyright:
(C) 2004-2005 Christian Hammond
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

Definition in file galago-context-priv.h.


Function Documentation

void galago_context_add_object void *  obj  ) 
 

Adds an object to the internal object tree.

This should only be used internally.

Parameters:
obj The object to add.

void galago_context_add_person GalagoPerson person  ) 
 

Adds a person to the context's person cache.

Parameters:
person The person to add.

void galago_context_add_service GalagoService service  ) 
 

Adds a service to the context's services cache.

Parameters:
service The service to add.

void galago_context_clear_objects galago_bool  native  ) 
 

Clears all native or foreign objects from the context.

This should only be used internally.

Parameters:
native TRUE if native objects should be cleared. FALSE if foreign objects should be cleared.

void galago_context_remove_object void *  obj  ) 
 

Removes an object from the internal object tree.

This should only be used internally.

Parameters:
obj The object to remove.

void galago_context_remove_person GalagoPerson person  ) 
 

Removes a person from the context's person cache.

Parameters:
person The person to remove.

void galago_context_remove_service GalagoService service  ) 
 

Removes a service from the context's services cache.

Parameters:
service The service to remove.

void galago_context_set_ops GalagoContext *  context,
GalagoContextOps *  ops
 

Sets the context ops to use for a context.

Parameters:
context The context.
ops The ops structure.