projects
/
easyphoto
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
bae7f0cf627cd5afcdf440f4e99d513eced8a3d1
[easyphoto]
/
easy_example.c
1
/**
2
* @file easy_exmaple.c
3
* @author Rouslan V. Solomakhin
4
* @license GPL
5
*/
6
7
#include "camera.h"
8
9
int main( int argc, char *argv[] )
10
{
11
photo_t context;
12
13
if ( !photo_initialize( &context, &argc, &argv ) )
14
return EXIT_FAILURE;
15
16
if ( !photo_take( &context, "Photo.jpeg" ) )
17
return EXIT_FAILURE;
18
19
if ( !photo_destroy( &context ) )
20
return EXIT_FAILURE;
21
22
return EXIT_SUCCESS;
23
}