Import ezmlm-idx 0.40
[ezmlm] / subscribe.h
CommitLineData
f8beb284
MW
1/*$Id: subscribe.h,v 1.14 1999/10/03 19:23:31 lindberg Exp $*/
2/*$Name: ezmlm-idx-040 $*/
5b62e993
MW
3#ifndef SUBSCRIBE_H
4#define SUBSCRIBE_H
5
f8beb284 6#include "stralloc.h"
5b62e993 7
f8beb284
MW
8/* these are the subroutines used for interfacing with the subscriber and */
9/* moderator address databases. For the put/to address output routines */
10/* the 'username' if defined is omitted from the output. flagadd = 1 adds */
11/* a subscriber, flagadd = 0 removes the address. To use e.g. a SQL data- */
12/* base for addresses, just replace these routines and rebuild ezmlm. */
13
14#ifdef WITH_PROTO
15
16extern int subscribe(char *dir,char *username,int flagadd,char *from,
17 char *event, int flagmysql, int forcehash,
18 char *table_override, char *FATAL);
19
20extern char *issub(char *dir,char *username, char *table_override, char *FATAL);
21
22extern unsigned long putsubs(char *dir,
23 unsigned long hash_lo, unsigned long hash_hi,
24 int subwrite(), int flagsql, char *fatal);
25
26/* int subwrite(char *string, unsigned int length); */
27
28extern void tagmsg(char *dir, unsigned long msgnum,
29 char *seed, char *action, char *hashout,
30 unsigned long bodysize, unsigned long chunk, char *fatal);
31
32extern char *logmsg(char *dir, unsigned long msgnum, unsigned long,
33 unsigned long subs, int done);
34
35extern char *checktag(char *dir, unsigned long msgnum, unsigned long listno,
36 char *action, char *seed, char *hash);
37
38extern void searchlog(char *dir, char *search, int subwrite(), char *fatal);
39
40extern char *opensql(char *dir, char **table);
41
42extern void closesql();
43
44#else
5b62e993
MW
45
46extern int subscribe();
f8beb284
MW
47extern char *issub();
48extern unsigned long putsubs();
49extern void tagmsg();
50extern char *logmsg();
51char *checktag();
52extern int subreceipt();
53extern char *getlistno();
54extern char *opensql();
55extern void closesql();
56extern void searchlog();
5b62e993
MW
57
58#endif
f8beb284
MW
59extern void *psql; /* contains SQL handle */
60#endif