summaryrefslogtreecommitdiffstats
path: root/src/msntab.h
blob: 9c473e301b48f619eca3083cc533c386363ad754 (plain)
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
#ifndef foomsntabhfoo
#define foomsntabhfoo

enum call_action { CALL_ACTION_IGNORE, CALL_ACTION_ACCEPT, CALL_ACTION_HANGUP };

struct tabentry {
    enum call_action action;
    unsigned ref_counter;

    char **args;
    char *local;
    char *remote;

    struct tabentry *next;
    struct tabentry *prev;

    int shbuf;
    unsigned rings;

    char *filename; /* filename of the msntab where this entry originates from */
    unsigned line;
};

struct tabentry* msntab_check_call(const char *callee, const char *caller);
struct tabentry* msntab_ref(struct tabentry *t);
void msntab_unref(struct tabentry *t);

void msntab_flush(void);
int msntab_load(const char *fn);
void msntab_dump(void);

#endif