Revision [322]

Last edited on 2005-10-11 05:11:56 by KogAdmin [line 400]
Additions:
//line 400 -- add top block of conf item


Revision [321]

Edited on 2005-10-11 01:16:41 by KogAdmin [moved text back up to step6]
Additions:
~7 Run autoconf
(or autoconf2xx as the case may be). This builds ./configure file
Deletions:
~7 Run autoconf (or autoconf2xx as the case may be) - This builds ./configure file


Revision [320]

Edited on 2005-10-11 01:15:57 by KogAdmin [added autoconf step]
Additions:
~7 Run autoconf (or autoconf2xx as the case may be) - This builds ./configure file
~8 run /.configure
Deletions:
~7 run /configure


Revision [319]

Edited on 2005-10-11 00:43:24 by KogAdmin [5->4]
Additions:
~4 edit src/conf.c to read new conf entries
Deletions:
~5 edit src/conf.c to read new conf entries


Revision [318]

Edited on 2005-10-11 00:43:07 by KogAdmin [account.h]
Additions:
~3 Added the following to include/account.h
~5 edit src/conf.c to read new conf entries
~5 Update modules/Makefile.in
~6 add to /configure.ac
~7 run /configure
Deletions:
(this will store info about the services)
~3 edit src/conf.c to read new conf entries
~4 Update modules/Makefile.in
~5 add to /configure.ac
~6 run /configure


Revision [310]

Edited on 2005-10-06 01:06:14 by KogAdmin [distclean et al hint]
Additions:
<< HINT: I ended up using make distclean && ./configure && make && make install a lot... Comes in handy, especially when things become strange; shutdown services and run that line and usually things just dissapear << ::c::


Revision [301]

Edited on 2005-10-05 04:29:39 by KogAdmin [distclean et al hint]
Additions:
~2 Write a [[AthemeMemoServMain main.c]]
~5 Build [[AthemeMemoServHelp help.c]] file w/ hookins
~6 [[AthemeMemoServHelp Build help structure]]
Deletions:
~2 Write a main.c
~5 Build help.c file w/ hookins
~6 Build help structure


Revision [300]

Edited on 2005-10-05 04:28:23 by KogAdmin [account.h]
Additions:
// later on...
/* struct for account memos */
struct mymemo_ {
char sender[NICKLEN];
char text[MEMOLEN];
time_t sent;
uint32_t status;
list_t metadata;
uint8_t newcount;
};
/* memo status flags */
#define MEMO_NEW 0x00000000
#define MEMO_READ 0x00000001


Revision [283]

Edited on 2005-10-04 22:39:34 by KogAdmin [added links for source]
Additions:
~4 Write other functions - [[AthemeMemoServSend send.c]], [[AthemeMemoServRead read.c]], [[AthemeMemoServList list.c]], [[AthemeMemoServForward forward.c]], [[AthemeMemoServDelete delete.c]]
Deletions:
~4 Write other functions - send.c, read.c, list.c, forward.c, ignore.c, delete.c


Revision [281]

Edited on 2005-10-04 14:29:29 by KogAdmin [added links for source]
Additions:
~3 Added a list_t to includes/account.h to store memos, memo struct in account.h (while putting constant in includes/common.h)
Deletions:
~3 Added a list_t to includes/account.h to store memos


Revision [280]

Edited on 2005-10-04 13:57:33 by KogAdmin [added links for source]
Additions:
~3 Added a list_t to includes/account.h to store memos
~4 Write other functions - send.c, read.c, list.c, forward.c, ignore.c, delete.c
~5 Build help.c file w/ hookins
~6 Build help structure
~7 Recompile
~8 Add loadmodules to atheme.conf
Deletions:
~3 Write other functions - send.c, read.c, list.c, forward.c, ignore.c, delete.c
~4 Build help.c file w/ hookins
~5 Build help structure
~6 Recompile
~7 Add loadmodules to atheme.conf


Revision [279]

Edited on 2005-10-04 04:55:01 by KogAdmin [more precise module specific]
Additions:
~3 Write other functions - send.c, read.c, list.c, forward.c, ignore.c, delete.c
~4 Build help.c file w/ hookins
~5 Build help structure
~6 Recompile
~7 Add loadmodules to atheme.conf
Deletions:
~3 Write a help.c
~4 Write other files
~5 Write help files/edit help.c to include
~6 Build help structure
~7 Recompile
~8 Add loadmodules to atheme.conf


Revision [277]

Edited on 2005-10-04 04:06:41 by KogAdmin [having issues with lists]

No Differences

Revision [276]

Edited on 2005-10-04 04:05:00 by KogAdmin [filled in the rest of general]
Additions:
(this will store info about the services)
changed SUBDIRS
SUBDIRS = chanserv nickserv global operserv userserv xmlrpc memoserv
This will tell it to recurse into memoserv dir
modules/memoserv/Makefile \
This will tell it to compile based on the makefile in the dir, generated by the configure
this will build make files


Revision [275]

Edited on 2005-10-04 04:01:37 by KogAdmin [added conf.c]
Additions:
//line 27 -- definition of sig
static int c_memoserv(CONFIGENTRY *);
//line 82 -- definition of sig
/* MemoServ client information. */
static int c_ms_nick(CONFIGENTRY *);
static int c_ms_user(CONFIGENTRY *);
static int c_ms_host(CONFIGENTRY *);
static int c_ms_real(CONFIGENTRY *);
//line 140 -- table to store conf data in
list_t conf_ms_table;
//line 392 -- add a conf block
add_top_conf("MEMOSERV", c_memoserv);
//line 458 -- conf items for parsing
/* memoserv{} block */
add_conf_item("NICK", &conf_ms_table, c_ms_nick);
add_conf_item("USER", &conf_ms_table, c_ms_user);
add_conf_item("HOST", &conf_ms_table, c_ms_host);
add_conf_item("REAL", &conf_ms_table, c_ms_real);

//line 518 -- adds a hook, tells it to read memoserv{} and give it to subblock handler, writing to conf_ms_table
static int c_memoserv(CONFIGENTRY *ce)
subblock_handler(ce, &conf_ms_table);
return 0;
}
//line 1141 -- these grab the actual conf values
static int c_ms_nick(CONFIGENTRY *ce)
if (ce->ce_vardata == NULL)
PARAM_ERROR(ce);
memosvs.nick = sstrdup(ce->ce_vardata);
return 0;
}
static int c_ms_user(CONFIGENTRY *ce)
if (ce->ce_vardata == NULL)
PARAM_ERROR(ce);
memosvs.user = sstrdup(ce->ce_vardata);
return 0;
}
static int c_ms_host(CONFIGENTRY *ce)
if (ce->ce_vardata == NULL)
PARAM_ERROR(ce);
memosvs.host = sstrdup(ce->ce_vardata);
return 0;
}
static int c_ms_real(CONFIGENTRY *ce)
if (ce->ce_vardata == NULL)
PARAM_ERROR(ce);
memosvs.real = sstrdup(ce->ce_vardata);
return 0;
}


Revision [274]

Edited on 2005-10-04 03:54:04 by KogAdmin [added note]
Additions:
<< NOTE: your services will NOT join a channel unless it's either explicitly told to (join on config_options.chan) OR you start the services with that services agent! << ::c::


Revision [273]

Edited on 2005-10-04 02:40:49 by KogAdmin [added note]
Additions:
~3 edit src/conf.c to read new conf entries
~4 Update modules/Makefile.in
~5 add to /configure.ac
~6 run /configure
Deletions:
~3 Update modules/Makefile.in
~4 add to /configure.ac
~5 run /configure


Revision [272]

Edited on 2005-10-04 00:22:14 by KogAdmin [added note]
Deletions:
== General overview ==


Revision [271]

Edited on 2005-10-04 00:21:40 by KogAdmin [v2]
Additions:
**General Setup**
~1 Create directories in help and modules
~2 update include/services.h
~3 Update modules/Makefile.in
~4 add to /configure.ac
~5 run /configure
**Module Specific**
~1 Build make files in /modules/memoserv
~2 Write a main.c
~3 Write a help.c
~4 Write other files
~5 Write help files/edit help.c to include
~6 Build help structure
~7 Recompile
~8 Add loadmodules to atheme.conf
Deletions:
~1 - Create directories in help and modules
~2 - Add a section to your atheme.conf
~3 - Create help files
~4 - build make files in /memoserv
~5 - fix make file in modules
~6 - create a main
~7 - update include/services.h
~8 - edit help.c in modules dir, reflect changes in make


Revision [270]

Edited on 2005-10-03 23:52:36 by KogAdmin [temp]
Additions:
~4 - build make files in /memoserv
~5 - fix make file in modules
~6 - create a main
~7 - update include/services.h
%%(c)
/* optional services */
struct memosvs
{
char *nick;
char *user;
char *host;
char *real;
char *disp;

service_t *me;
} memosvs;
%%
~8 - edit help.c in modules dir, reflect changes in make


Revision [269]

The oldest known version of this page was created on 2005-10-03 22:07:49 by KogAdmin [temp]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki