Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit e8956512 authored by rswindell's avatar rswindell

Converted six arrays of ulong/short for sub-board config/pointer data to a

single array of structures.
Created exported C functions to get/put sub-board cfg/ptr data for a user.
parent 7038b230
......@@ -260,12 +260,7 @@ public:
uchar action; /* Current action of user */
long online; /* Remote/Local or not online */
long sys_status; /* System Status */
ushort *sub_cfg; /* User configuration for this sub-board */
ulong *sub_ptr; /* Highest read message */
ulong *sub_last; /* last read message pointer */
ushort *sav_sub_cfg; /* Save cfg and ptrs for subs */
ulong *sav_sub_ptr; /* for fast pointer update */
ulong *sav_sub_last; /* last read message pointer */
subscan_t *subscan; /* User sub configuration/scan info */
ulong logon_ulb, /* Upload Bytes This Call */
logon_dlb, /* Download Bytes This Call */
......@@ -807,6 +802,10 @@ extern "C" {
DLLEXPORT char * DLLCALL remove_ctrl_a(char* instr, char* outstr);
/* data_ovl.cpp */
DLLEXPORT BOOL DLLCALL getmsgptrs(scfg_t* cfg, uint usernumber, subscan_t* subscan);
DLLEXPORT BOOL DLLCALL putmsgptrs(scfg_t* cfg, uint usernumber, subscan_t* subscan);
#ifdef JAVASCRIPT
/* js_global.c */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment