-
Notifications
You must be signed in to change notification settings - Fork 1
/
application.c
44 lines (33 loc) · 836 Bytes
/
application.c
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
#include <string.h>
#include <stdlib.h>
#include "application.h"
inline struct sig_list* create_sig_list()
{
struct sig_list *head =
(struct sig_list *)malloc(sizeof(struct sig_list));
if (head != NULL) {
STAILQ_INIT(head);
}
return head;
}
inline struct sig_s* create_sig()
{
struct sig_s *sig =
(struct sig_s *)malloc(sizeof(struct sig_s));
return sig;
}
inline struct application_s* create_application()
{
struct application_s *app =
(struct application_s *)malloc(sizeof(struct application_s));
return app;
}
inline struct application_list* create_application_list()
{
struct application_list *head =
(struct application_list *)malloc(sizeof(struct application_list));
if (head != NULL) {
STAILQ_INIT(head);
}
return head;
}