summaryrefslogtreecommitdiff
path: root/src/include/Spy.h
blob: 9d2e0f7a2df5e301f2485c023f82b833856016d4 (plain) (blame)
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
#ifndef SPY_H
#define SPY_H
#include <Eina.h>
#include <Ecore.h>
#include <Eio.h>

/**
 * @addtogroup Lib-Spy-Functions
 * @{
 */

extern int SPY_EVENT_LINE; /*!< Event created when a new line is found */

typedef struct _Spy Spy;
typedef struct _Spy_File Spy_File;
typedef struct _Spy_Line Spy_Line;

int spy_init(void);
int spy_shutdown(void);

Spy * spy_new(void);
void spy_free(Spy *spy);

void spy_file_free(Spy_File *sf);
Spy_File * spy_file_new(Spy *spy, const char *file);
Spy_File * spy_file_get(Spy *spy, const char *file);
const char * spy_file_name_get(Spy_File *sf);
void spy_file_data_set(Spy_File *sf, const void *data);
void * spy_file_data_get(Spy_File *sf);
void spy_file_pause(Spy_File *sf);
void spy_file_resume(Spy_File *sf);

const char * spy_line_get(Spy_Line *sl);
Spy_File * spy_line_spyfile_get(Spy_Line *sl);

/**
 * @}
 */
#endif