X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fnetwork%2Fnetspool.h;h=ef00b88bcb120bb94007cc6930cbdf5d727dfd1a;hb=fd710adc44e642ad7b62cffbb7114c5b3f82bed4;hp=ae01838879d1fcf59f48f7ae05e0b64e56363384;hpb=8c8430b53c3cb14bd983cd3c767d7bbe485f4155;p=citadel.git diff --git a/citadel/modules/network/netspool.h b/citadel/modules/network/netspool.h index ae0183887..ef00b88bc 100644 --- a/citadel/modules/network/netspool.h +++ b/citadel/modules/network/netspool.h @@ -2,21 +2,21 @@ * This module handles shared rooms, inter-Citadel mail, and outbound * mailing list processing. * - * Copyright (c) 2000-2012 by the citadel.org team + * Copyright (c) 2000-2018 by the citadel.org team * - * This program is open source software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. + * This program is open source software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * ** NOTE ** A word on the S_NETCONFIGS semaphore: * This is a fairly high-level type of critical section. It ensures that no @@ -27,37 +27,3 @@ * */ -typedef struct maplist maplist; - -struct maplist { - struct maplist *next; - StrBuf *remote_nodename; - StrBuf *remote_roomname; -}; - - -typedef struct SpoolControl SpoolControl; - -struct SpoolControl { - long lastsent; - StrBuf *Sender; - StrBuf *RoomInfo; - namelist *NetConfigs[maxRoomNetCfg]; - StrBuf *misc; - FILE *digestfp; - int num_msgs_spooled; - - HashList *working_ignetcfg; - HashList *the_netmap; -}; - - -void network_spoolout_room(RoomProcList *room_to_spool, - HashList *working_ignetcfg, - HashList *the_netmap); -void network_do_spoolin(HashList *working_ignetcfg, HashList *the_netmap, int *netmap_changed); -void network_consolidate_spoolout(HashList *working_ignetcfg, HashList *the_netmap); -void free_spoolcontrol_struct(SpoolControl **scc); -int writenfree_spoolcontrol_file(SpoolControl **scc, char *filename); -int read_spoolcontrol_file(SpoolControl **scc, char *filename); -int is_recipient(SpoolControl *sc, const char *Name);