Galago - desktop presence framework

galago-photo.h File Reference

Galago Photo API. More...

#include <stdlib.h>
#include <libgalago/galago-image.h>
#include <libgalago/galago-person.h>

Go to the source code of this file.


Photo API

GalagoObjectClassgalago_photo_get_class (void)
 Returns the class for a GalagoPhoto.
GalagoPhotogalago_photo_new (GalagoPerson *person, const unsigned char *data, size_t len)
 Creates a new photo.
void galago_photo_set_image_data (GalagoPhoto *photo, const unsigned char *data, size_t len)
 Sets the photo's image data.
GalagoPersongalago_photo_get_person (const GalagoPhoto *photo)
 Returns an photo's person.
void galago_photo_get_image_data (const GalagoPhoto *photo, unsigned char **ret_data, size_t *ret_len)
 Returns an photo's image data.

Defines

#define GALAGO_CLASS_PHOTO   (galago_photo_get_class())
#define GALAGO_DBUS_PHOTO_INTERFACE   "org.freedesktop.Galago.Photo"
#define GALAGO_IS_PHOTO(obj)   (GALAGO_IS_OBJECT(obj) && galago_object_check_cast((obj), GALAGO_CLASS_PHOTO))

Typedefs

typedef _GalagoPhoto GalagoPhoto
typedef _GalagoPhotoClass GalagoPhotoClass
typedef _GalagoPhotoPrivate GalagoPhotoPrivate

Detailed Description

Galago Photo 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-photo.h.


Function Documentation

GalagoObjectClass* galago_photo_get_class void   ) 
 

Returns the class for a GalagoPhoto.

Returns:
The GalagoPhoto class.

void galago_photo_get_image_data const GalagoPhoto photo,
unsigned char **  ret_data,
size_t *  ret_len
 

Returns an photo's image data.

Parameters:
photo The photo.
ret_data The returned image data.
ret_len The returned image data length.

GalagoPerson* galago_photo_get_person const GalagoPhoto photo  ) 
 

Returns an photo's person.

Parameters:
photo The photo.
Returns:
The person.

GalagoPhoto* galago_photo_new GalagoPerson person,
const unsigned char *  data,
size_t  len
 

Creates a new photo.

Parameters:
person The person the photo is for.
data The image data.
len The image data length.
Returns:
The photo.

void galago_photo_set_image_data GalagoPhoto photo,
const unsigned char *  data,
size_t  len
 

Sets the photo's image data.

Parameters:
photo The photo.
data The image data.
len The image data length.