]> jfr.im git - irc.git/blob - software/RELEASES/ircservices/achurch.org/services/lists/ircservices-coding/2002/000087.html
rename -> *.git
[irc.git] / software / RELEASES / ircservices / achurch.org / services / lists / ircservices-coding / 2002 / 000087.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
2 <HTML>
3 <HEAD>
4 <TITLE> [IRCServices Coding] svcs5 - request
5 </TITLE>
6 <LINK REL="Index" HREF="index.html" >
7 <LINK REL="made" HREF="mailto:ircservices-coding%40ircservices.za.net?Subject=%5BIRCServices%20Coding%5D%20svcs5%20-%20request&In-Reply-To=">
8 <META NAME="robots" CONTENT="index,nofollow">
9 <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
10 <LINK REL="Previous" HREF="000086.html">
11 <LINK REL="Next" HREF="000089.html">
12 </HEAD>
13 <BODY BGCOLOR="#ffffff">
14 <H1>[IRCServices Coding] svcs5 - request</H1>
15 <B>v13 at priest.com</B>
16 <A HREF="mailto:ircservices-coding%40ircservices.za.net?Subject=%5BIRCServices%20Coding%5D%20svcs5%20-%20request&In-Reply-To="
17 TITLE="[IRCServices Coding] svcs5 - request">v13 at priest.com
18 </A><BR>
19 <I>Sun Jan 6 05:52:14 PST 2002</I>
20 <P><UL>
21 <LI>Previous message: <A HREF="000086.html">[IRCServices Coding] Meilleurs V&#156;ux pour 2002 : ann&#233;e de m&#233;moire, de mobilisation, d'action, de justice et de s&#233;r&#233;nit&#233; - Appel au soutien moral et financier
22 </A></li>
23 <LI>Next message: <A HREF="000089.html">[IRCServices Coding] svcs5 - request
24 </A></li>
25 <LI> <B>Messages sorted by:</B>
26 <a href="date.html#87">[ date ]</a>
27 <a href="thread.html#87">[ thread ]</a>
28 <a href="subject.html#87">[ subject ]</a>
29 <a href="author.html#87">[ author ]</a>
30 </LI>
31 </UL>
32 <HR>
33 <!--beginarticle-->
34 <PRE> If you realy want other people to write useful modules, then it should be
35 possible for each module to extend the NickServ and ChanServ (and even the
36 others) databases. I suppose that having a:
37
38 struct ext_list {
39 struct ext_list *prev, *next;
40 long id;
41 size_t size;
42 void *buf;
43 };
44
45 that will form a list for each nickname/channel whould be what we need. It
46 should be easy to save it using the existing database format.
47 Also by providing some functions like:
48
49 struct ext_list *get_extlist_memb(struct ext_list *head, long id);
50
51 void update_extlist_memb(struct ext_list **head, long id, size_t size,
52 void *buf);
53
54 /* and one for delete */
55
56 it should be very easy to handle it.
57
58 Each module will only need to have a fixed unique integer to use and it will
59 need only one field to be added to struct NickInfo etc.. like:
60
61 struct NickInfo {
62 ...
63 struct ext_list *head;
64 };
65
66 and after that..
67
68 /**********************************************/
69
70 #define MY_ID 0x1234
71
72 struct NickInfo *ni;
73 struct ext_list *el;
74
75 ...code...
76
77 update_extlist_memb( &amp;(ni-&gt;head), MY_ID, 7, &quot;RANDOM&quot; );
78
79 ...code...
80
81 el=get_extlist_memb(ni-&gt;head, MY_ID);
82
83 /* and there we have el==NULL or el-&gt;buf == &quot;RANDOM&quot; */
84
85 /**********************************************/
86
87 Something like this whould *REALY* help to add functionality without changing
88 existing code, without creating another database and will be compatible to
89 future versions.
90
91 TIA
92 &lt;&lt;V13&gt;&gt;
93
94 </PRE>
95
96 <!--endarticle-->
97 <HR>
98 <P><UL>
99 <!--threads-->
100 <LI>Previous message: <A HREF="000086.html">[IRCServices Coding] Meilleurs V&#156;ux pour 2002 : ann&#233;e de m&#233;moire, de mobilisation, d'action, de justice et de s&#233;r&#233;nit&#233; - Appel au soutien moral et financier
101 </A></li>
102 <LI>Next message: <A HREF="000089.html">[IRCServices Coding] svcs5 - request
103 </A></li>
104 <LI> <B>Messages sorted by:</B>
105 <a href="date.html#87">[ date ]</a>
106 <a href="thread.html#87">[ thread ]</a>
107 <a href="subject.html#87">[ subject ]</a>
108 <a href="author.html#87">[ author ]</a>
109 </LI>
110 </UL>
111
112 </body></html>