File: responses.h

package info (click to toggle)
mailfront 0.98-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 648 kB
  • ctags: 495
  • sloc: ansic: 3,033; sh: 1,487; makefile: 78
file content (20 lines) | stat: -rw-r--r-- 442 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef MAIL_FRONT__RESPONSES__H__
#define MAIL_FRONT__RESPONSES__H__

struct response 
{
  unsigned number;
  const char* message;
};
typedef struct response response;

extern const response resp_accepted;
extern const response resp_internal;
extern const response resp_oom;

#define RESPONSE(NAME,CODE,MSG) const response resp_##NAME = {CODE,MSG}

extern int number_ok(const response* r);
extern int response_ok(const response* r);

#endif