3 * @author Rouslan Solomakhin
17 * Maximum length of the file name for the photo.
19 #define PHOTO_FILE_NAME_LENGTH 256
22 * Context for the process of taking photos.
29 char file_name[PHOTO_FILE_NAME_LENGTH];
34 * Initialize the camera context.
35 * @param context Allocated context.
36 * @param argc Number of arguments to main.
37 * @param argv Argument vector to main.
38 * @return TRUE for success. FALSE for failure.
40 gboolean photo_initialize( photo_t *context, int *argc, char **argv[] );
44 * @param context Context for the process of taking photos.
45 * @param file_name Name of the file where photo is saved.
46 * @return TRUE for success. FALSE for failure.
48 gboolean photo_take( photo_t *context, const char *file_name );
51 * Destroy the camera context.
52 * @param context The context to destroy.
53 * @return TRUE for success. FALSE for failure.
55 gboolean photo_destroy( photo_t *context );