TRIP Routing Daemon
TRIP (RFC 3219) Location Server Implementation
Loading...
Searching...
No Matches
enum.h
Go to the documentation of this file.
1/*
2
3 trip: Modern TRIP LS implementation
4 Copyright (C) 2026 arf20 (Ángel Ruiz Fernandez)
5
6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <https://www.gnu.org/licenses/>.
18
19*/
20
24
25#ifndef _ENUM_H
26#define _ENUM_H
27
28#include <db/trib.h>
29
30#include <sys/types.h>
31
32
33typedef struct {
34 pthread_t thread;
35 struct sockaddr_in6 listen_sa;
36 int fd;
37 int run;
38 char *zone;
39 trib_t *trib;
40} enum_t;
41
42
43enum_t *enum_new(const char *zone, const struct sockaddr_in6 *listen_sa,
44 trib_t *trib);
45void enum_run(enum_t *en);
46void enum_stop(enum_t *en);
47void enum_destroy(enum_t *en);
48
49#endif /* _ENUM_H */
50
Definition enum.h:33
Telephony Routing Information Base.
Definition trib.h:140
Telephony Routing Information Base.