/*
* Traverse the user file...
*/
-void ForEachUser(void (*CallBack)(struct usersupp *EachUser)) {
+void ForEachUser(void (*CallBack)(struct usersupp *EachUser, void *out_data),
+ void *in_data) {
struct usersupp usbuf;
struct cdbdata *cdbus;
( (cdbus->len > sizeof(struct usersupp)) ?
sizeof(struct usersupp) : cdbus->len) );
cdb_free(cdbus);
- (*CallBack)(&usbuf);
+ (*CallBack)(&usbuf, in_data);
}
}
/*
* List one user (this works with cmd_list)
*/
-void ListThisUser(struct usersupp *usbuf) {
+void ListThisUser(struct usersupp *usbuf, void *data) {
if (usbuf->axlevel > 0) {
if ((CC->usersupp.axlevel>=6)
||((usbuf->flags&US_UNLISTED)==0)
*/
void cmd_list(void) {
cprintf("%d \n",LISTING_FOLLOWS);
- ForEachUser(ListThisUser);
+ ForEachUser(ListThisUser, NULL);
cprintf("000\n");
}