File: notify.h

package info (click to toggle)
tsdecrypt 10.0-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,288 kB
  • sloc: ansic: 14,377; makefile: 245; sh: 166
file content (31 lines) | stat: -rw-r--r-- 939 bytes parent folder | download | duplicates (5)
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