blob: 0225fa1e858bdecbb9ef8ca6714cfd24c516e96e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include <stdlib.h>
#include <string.h>
#include "uca.h"
#include "uca-cam.h"
#include "uca-grabber.h"
struct uca_camera_priv *uca_cam_new(void)
{
struct uca_camera_priv *cam = (struct uca_camera_priv *) malloc(sizeof(struct uca_camera_priv));
/* Set all function pointers to NULL so we know early on, if something has
* not been implemented. */
memset(cam, 0, sizeof(struct uca_camera_priv));
cam->state = UCA_CAM_CONFIGURABLE;
cam->current_frame = 0;
return cam;
}
|