summaryrefslogtreecommitdiff
path: root/src/include/Spy.h
blob: 359007537441b07687f9552d374faf021fb70280 (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
#ifndef SPY_H
#define SPY_H
#include <Eina.h>
#include <Ecore.h>
#include <Eio.h>

extern int SPY_EVENT_LINE;

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