galago-photo.h
Go to the documentation of this file.00001
00021 #ifndef _GALAGO_PHOTO_H_
00022 #define _GALAGO_PHOTO_H_
00023
00024 #include <stdlib.h>
00025
00026 typedef struct _GalagoPhoto GalagoPhoto;
00027 typedef struct _GalagoPhotoClass GalagoPhotoClass;
00028 typedef struct _GalagoPhotoPrivate GalagoPhotoPrivate;
00029
00030 #include <libgalago/galago-image.h>
00031 #include <libgalago/galago-person.h>
00032
00039 struct _GalagoPhoto
00040 {
00041 GalagoImage parent_object;
00042
00043 GalagoPhotoPrivate *priv;
00044
00045 void (*reserved_1)(void);
00046 void (*reserved_2)(void);
00047 void (*reserved_3)(void);
00048 void (*reserved_4)(void);
00049 };
00050
00054 struct _GalagoPhotoClass
00055 {
00056 GalagoImageClass parent_class;
00057
00058 void (*reserved_1)(void);
00059 void (*reserved_2)(void);
00060 void (*reserved_3)(void);
00061 void (*reserved_4)(void);
00062 };
00063
00064 #define GALAGO_CLASS_PHOTO (galago_photo_get_class())
00065 #define GALAGO_DBUS_PHOTO_INTERFACE "org.freedesktop.Galago.Photo"
00066 #define GALAGO_IS_PHOTO(obj) (GALAGO_IS_OBJECT(obj) && galago_object_check_cast((obj), GALAGO_CLASS_PHOTO))
00067
00068 #ifdef __cplusplus
00069 extern "C" {
00070 #endif
00071
00072
00074
00082 GalagoObjectClass *galago_photo_get_class(void);
00083
00093 GalagoPhoto *galago_photo_new(GalagoPerson *person,
00094 const unsigned char *data, size_t len);
00095
00103 void galago_photo_set_image_data(GalagoPhoto *photo,
00104 const unsigned char *data, size_t len);
00105
00113 GalagoPerson *galago_photo_get_person(const GalagoPhoto *photo);
00114
00122 void galago_photo_get_image_data(const GalagoPhoto *photo,
00123 unsigned char **ret_data,
00124 size_t *ret_len);
00125
00128 #ifdef __cplusplus
00129 }
00130 #endif
00131
00132 #endif