-
Notifications
You must be signed in to change notification settings - Fork 52
/
notify.h
31 lines (25 loc) · 939 Bytes
/
notify.h
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
/*
* Exec external program to notify for an event
* Copyright (C) 2011 Unix Solutions Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License (COPYING file) for more details.
*
*/
#ifndef NOTIFY_H
# define NOTIFY_H
#include "libfuncs/queue.h"
#include "data.h"
struct notify *notify_alloc(struct ts *ts);
__attribute__ ((format(printf, 3, 4)))
void notify(struct ts *ts, char *msg_id, char *text_fmt, ...);
__attribute__ ((format(printf, 3, 4)))
void notify_sync(struct ts *ts, char *msg_id, char *text_fmt, ...);
void notify_free(struct notify **pn);
#endif