]> jfr.im git - solanum.git/blame - authd/notice.h
Innovation by sed
[solanum.git] / authd / notice.h
CommitLineData
db821ee9
EM
1/* authd/notice.h - send notices back to the ircd and to clients
2 * Copyright (c) 2016 Elizabeth Myers <elizabeth@interlinked.me>
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice is present in all copies.
7 *
8 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
9 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
10 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
11 * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
12 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
13 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
14 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
15 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
16 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
17 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
18 * POSSIBILITY OF SUCH DAMAGE.
19 */
20
a6f63a82
EK
21#ifndef __SOLANUM_AUTHD_NOTICE_H__
22#define __SOLANUM_AUTHD_NOTICE_H__
db821ee9
EM
23
24typedef enum
25{
26 L_DEBUG = 'D',
27 L_INFO = 'I',
28 L_WARN = 'W',
29 L_CRIT ='C',
30} notice_level_t;
31
32void notice_client(uint32_t cid, const char *fmt, ...);
33void warn_opers(notice_level_t level, const char *fmt, ...);
02e141f7
EM
34void stats_result(uint32_t cid, char letter, const char *fmt, ...);
35void stats_error(uint32_t cid, char letter, const char *fmt, ...);
36void stats_done(uint32_t cid, char letter);
db821ee9 37
a6f63a82 38#endif /* __SOLANUM_AUTHD_NOTICE_H__ */