1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
/*
* Copyright (c) 2013, Motorola Mobility, LLC.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program 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 General Public License for more details.
*
*/
#ifndef DROPBOX_H
#define DROPBOX_H
#include <linux/types.h>
#include <linux/time.h>
#ifdef CONFIG_DROPBOX
extern void dropbox_register_trigger_callback(const char *name,
void (*callback)(void *), void *data);
extern void dropbox_queue_event_binary(char *name,
void *data, size_t size);
extern void dropbox_queue_event_text(char *name,
void *data, size_t size);
extern void dropbox_queue_event_binaryfile(char *name, char *path);
extern void dropbox_queue_event_textfile(char *name, char *path);
extern void dropbox_queue_event_empty(char *name);
#else
static inline void dropbox_register_trigger_callback(const char *name,
void (*callback)(void *), void *data) {}
static inline void dropbox_queue_event_binary(char *name,
void *data, size_t size) {}
static inline void dropbox_queue_event_text(char *name,
void *data, size_t size) {}
static inline void dropbox_queue_event_binaryfile(char *name, char *path) {}
static inline void dropbox_queue_event_textfile(char *name, char *path) {}
static inline void dropbox_queue_event_empty(char *name) {}
#endif
#endif /* DROPBOX_H */
|