Add macros for functions IsEmpty, FindIter, Contains to make availablelist functions more complete.
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@1174 70169cfe-8b10-0410-8925-dcb4b91034d8
Add functions IsEmpty, FindIter, Contains to make available list functions more complete.
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@1169 70169cfe-8b10-0410-8925-dcb4b91034d8
Add common macros for DIR_SEPARATOR and SEARCHPATH_SEPARATOR, both ascharacter and string. Naming is similar to glib convention.
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@1161 70169cfe-8b10-0410-8925-dcb4b91034d8
- decreased verbosity in src/parser/xml.c and src/base/plugindescr.c
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@1090 70169cfe-8b10-0410-8925-dcb4b91034d8
- nl_packets: Don't start sending data unless the next lower layer is connected
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@1088 70169cfe-8b10-0410-8925-dcb4b91034d8
- introduced attribute GWENHYWFAR_CB which expands to "__stdcall" on WIN32 systems. This prevents some spurious errors we get on Win32 systems when inherited classes are used (those errors are very hard to debug so we now prevent them). On WIN32 systems this changes the API of inherting classes!...
- implemented the function GWEN_Logger_SetLogFunction()
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@1086 70169cfe-8b10-0410-8925-dcb4b91034d8
- fixed a bug in list.c (pointed out by "Archimedes Submerged")
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@1081 70169cfe-8b10-0410-8925-dcb4b91034d8
- added a simple signal/slot framework which allows a single signal to be connected to multiple matching slots- GWEN_List_Erase(): The given iterator is moved toward the next element in any case (if there is no next element then the iterator will point to 0)....
- src/storage: - fixed some bugs - object ids are now only unique within a type's namespace. This allows for a more efficient use of GWEN_IDMAP to store object ids per type.
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@1071 70169cfe-8b10-0410-8925-dcb4b91034d8
- src/storage.c: fixed a bug
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@1070 70169cfe-8b10-0410-8925-dcb4b91034d8
- improved idmap code: now iterates over const idmaps (i.e. the argument *pid to the function GWEN_IdMap_FindNext() is now used as attach point instead of an internally stored var). This also allows for multiple iterations in parallel
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@1068 70169cfe-8b10-0410-8925-dcb4b91034d8
Add include file ifdefs, which might be necessary on some windows (MSVC) platforms.
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@1067 70169cfe-8b10-0410-8925-dcb4b91034d8
- src/base/idlist: added functions which allow iterating over const GWEN_IDLIST as well
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@1066 70169cfe-8b10-0410-8925-dcb4b91034d8
- added function pr##_IdMap_FreeItems() to GWEN_IDMAP macros which e.g. expands to GWEN_Buffer_IdMap_freeItems() for "GWEN_IDMAP_FUNCTION_DEFS(GWEN_BUFFER, GWEN_Buffer)". This function frees all objects stored in the GWEN_IDMAP and clears the GWEN_IDMAP (e.g. make it contain no ids afterwards)....
- added function pr##_IdMap_freeAll() to GWEN_IDMAP macros which e.g. expands to GWEN_Buffer_IdMap_freeAll() for "GWEN_IDMAP_FUNCTION_DEFS(GWEN_BUFFER, GWEN_Buffer)". This function frees all objects stored in the GWEN_IDMAP and frees the GWEN_IDMAP itself....
some fixes to storage code
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@1054 70169cfe-8b10-0410-8925-dcb4b91034d8
more name changes to make the idmap functions fit better into gwenhywfar
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@1053 70169cfe-8b10-0410-8925-dcb4b91034d8
added some idmap functions
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@1052 70169cfe-8b10-0410-8925-dcb4b91034d8
renamed idmap functions according to Christian's advices
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@1051 70169cfe-8b10-0410-8925-dcb4b91034d8
- added typesafe macros for idmap (like those macros for GWEN_LIST2), e.g. "GWEN_IDMAP_FUNCTION_DEFS(GWEN_BUFFER, GWEN_Buffer)" would create an idmap for GWEN_BUFFER objects instead of void* pointers. So the function GWEN_Buffer_IdMap_GetPtr() will only work on an idmap which stores pointers...
- added base/idmap: This code allows for fast and efficient storage of pairs of [32-bit ID and a void* pointer]. Such pairs can be set, reset and sought. This new class also allows to fastly iterate over the pairs. It allows for multiple storage algos. The first algo uses 8-step pointer...
- added storage framework (to be used by some of my developing projects)- added first storage plugin which uses local files The storage framework is not yet part of the official API of Gwenhywfar, so API changes are likely to occurr.
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@1048 70169cfe-8b10-0410-8925-dcb4b91034d8
- removed prototype for a function which had been removed in previous versions
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@1043 70169cfe-8b10-0410-8925-dcb4b91034d8
2006-04-18 Christian Stimming <stimming@tuhh.de>
- included a temporary fix for MacOSX as suggested by Thorsten (introduce a 1s sleep when writing to a socket for the first time). This is just an ugly hack, but it should work.
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@1030 70169cfe-8b10-0410-8925-dcb4b91034d8
- fixed a bug in DBIO plugins: Was returning a false value when file to be checked did not exist
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@1020 70169cfe-8b10-0410-8925-dcb4b91034d8
2006-03-24 Christian Stimming <stimming@tuhh.de>
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@1009 70169cfe-8b10-0410-8925-dcb4b91034d8
- clarified documentation of list1.h
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@999 70169cfe-8b10-0410-8925-dcb4b91034d8
Improve documentation
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@998 70169cfe-8b10-0410-8925-dcb4b91034d8
- replaced old GWEN_LIST stuff by new code: These new lists are a drop-in replacement for the old lists (source-compatible) and are double-linked. In addition to storing the first element these lists now also store a pointer to the last element. This makes browsing of the list when adding...
- fixed a bug in waitcallback code
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@994 70169cfe-8b10-0410-8925-dcb4b91034d8
prepared release of 2.0.0
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@992 70169cfe-8b10-0410-8925-dcb4b91034d8
- removed debug messages in ct_file.c
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@987 70169cfe-8b10-0410-8925-dcb4b91034d8
2006-02-10 Christian Stimming <stimming@tuhh.de>
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@986 70169cfe-8b10-0410-8925-dcb4b91034d8
- GWEN_WaitCallback_Enter_u() now immediately calls the checkAbort function. This allows instantiated callbacks to check whether a widget is to be shown immediately.
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@962 70169cfe-8b10-0410-8925-dcb4b91034d8
- worked on typemaker: - fixed some bugs (e.g. missing DOMAIN before List_dup-functions) - added "c-headers", "pre-headers" and "post-headers" - added some struct-properties - constructor-name - constructor-access - fromdb-access - dup-access...
Ifdef static variable to avoid unused variable warning
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@958 70169cfe-8b10-0410-8925-dcb4b91034d8
- worked on memory allocation stuff: - calls to GWEN_NEW_OBJECT and GWEN_FREE_OBJECT MUST be matched - added optional code for allocation of small memory blocks without having to bother the heap for every 4 byte data (disabled for now, since it is much less effective than the glibc heap functions. However,...
2005-12-06 Christian Stimming <stimming@tuhh.de>
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@953 70169cfe-8b10-0410-8925-dcb4b91034d8
- completed documentation of pathmanager
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@952 70169cfe-8b10-0410-8925-dcb4b91034d8
- temporarily disabled call to GWEN_PluginDescription_List2_free() from within GWEN_PluginDescription_List2_freeAll(): This causes Gnucash to crash because it contains a workaround for an old memory leak which had been fixed in the last release of Gwen. However, the bugfix in gwen and the...
Add much documentation
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@949 70169cfe-8b10-0410-8925-dcb4b91034d8
Add missing GWENHYWFAR_API macro
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@947 70169cfe-8b10-0410-8925-dcb4b91034d8
- fixed a bug in HTTP write work function: Was always returning "Changed", even if there was nothing to write. This caused up to 100% CPU consumption- introduced brake to avoid CPU overload by GWEN_Net_HeartBeat()- entered cleanup phasis: - implemented destructors for netlayers...
- improved to GWEN_NetLayerHttp_Request() [nl_http.c]: - intermediate packets (like "100 Continue") are now ignored - when the final response indicates to close the connection (via header "Connection: close" or when this header is omitted in HTTP/1.0)...
- implemented poll()-based code which checks whether a connection is down (as suggested by Thomas Baumgart)- changed HTTP code: Now tries to detect when a connection is broken while trying to send a packet (detects the special condition when the connection...
Add missing GWENHYWFAR_API
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@899 70169cfe-8b10-0410-8925-dcb4b91034d8
Add GWENHYWFAR_API to headers
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@898 70169cfe-8b10-0410-8925-dcb4b91034d8
- started on Gwenhywfar2: - src/ipc/*: - removed netconnectionhttp*.{c,h} - renamed all function GWEN_IPCxxx to GWEN_IpcXxx (according to coding style of GWEN) - removed src/net This has now been replaced by src/net2. - removed ui/...
- added functions to GWEN_NetLayer: - GWEN_NetLayer_RecvPacket() - GWEN_NetLayer_SendPacket() - GWEN_NetLayer_RecvPacketBio() - GWEN_NetLayer_SendPacketBio() (this is now used for HTTP requests)- fixed a bug in nl_http.c (error in handling of chunked transfers)...
- worked on typemaker: - write_code_fromdbArg_c() no longer handles volatile elements - now defining virtual functions is allowed. Typemaker declares the type and getter/setter/exec functions (see src/ipc/request/request.xml)- worked on IPC: - undid the latest changes (do not export the internal GWEN_IPCREQUEST...
- worked on a timing problem in network code
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@872 70169cfe-8b10-0410-8925-dcb4b91034d8
- added function GWEN_IPCManager_GetClientForConnection()- added some more debugging to cryptssl_rsa.c
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@868 70169cfe-8b10-0410-8925-dcb4b91034d8
- GWEN_Logger_ModuleInit() now uses the envrionment variable "GWEN_LOGLEVEL" to determine the initial loglevel for Gwen
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@865 70169cfe-8b10-0410-8925-dcb4b91034d8
Clean up Makefiles: Remove cmdline defines that are no longer being used
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@861 70169cfe-8b10-0410-8925-dcb4b91034d8
minor fix
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@835 70169cfe-8b10-0410-8925-dcb4b91034d8
- added functions - GWEN_Directory_FindPathForFile()
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@834 70169cfe-8b10-0410-8925-dcb4b91034d8
- added functions - GWEN_Directory_FindFileInPaths() - GWEN_DB_RemoveCharValue() - GWEN_PathManager_AddPath() - GWEN_PathManager_InsertPath() - GWEN_PathManager_RemovePath() - GWEN_PathManager_RemovePaths() - GWEN_PathManager_PathChanged() - GWEN_PathManager_GetPaths()...
- added functions - GWEN_PluginManager_InsertPath() - GWEN_PluginManager_RemovePath()
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@832 70169cfe-8b10-0410-8925-dcb4b91034d8
minor changes
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@827 70169cfe-8b10-0410-8925-dcb4b91034d8
- added definition GWEN_WAITCALLBACK_PROGRESS_ONE
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@826 70169cfe-8b10-0410-8925-dcb4b91034d8
2005-08-04 Christian Stimming <stimming@tuhh.de>
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@822 70169cfe-8b10-0410-8925-dcb4b91034d8
- more work on crypttoken- added crypttoken flag GWEN_CRYPTTOKEN_FLAGS_FORCE_PIN_ENTRY- added getpin flag GWEN_CRYPTTOKEN_GETPIN_FLAGS_ALLOW_DEFAULT
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@818 70169cfe-8b10-0410-8925-dcb4b91034d8
- added virtual function GWEN_CryptToken_GetTokenIdData()- fixed some bugs in OpenHBCI keyfile code
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@815 70169cfe-8b10-0410-8925-dcb4b91034d8
- added function GWEN_KeySpec_toDb()- added function GWEN_KeySpec_fromDb()- fixed a bug in PluginDescr loading code- fixed a bug in GWEN_Buffer_dup()- added GWEN_CryptManager_CheckToken()- added the command "checktoken" to gct-tool (checks whether a given token...
- no longer enter or leave waitcallbacks in netconnection.c (because we are working with milliseconds here)
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@812 70169cfe-8b10-0410-8925-dcb4b91034d8
- redefined GWEN_WAITCALLBACK_PROGRESS_NONE as "-1". FIXME: Does this result in 0xffffffffffffffff ??
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@811 70169cfe-8b10-0410-8925-dcb4b91034d8
- GWEN_WAITCALLBACK: - added text field to waitcallback - added function/macro GWEN_WaitCallback_EnterWithText - fixed GWEN_WaitCallback: If any previously activated callback returns GWEN_WaitCallbackResult_Abort then all following callbacks will return...
- GWEN_Error_GetSimpleCode() now reacts on warnings, too
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@800 70169cfe-8b10-0410-8925-dcb4b91034d8
- bufferedio: Now uses severity "error" instead of "warn" in some places- fixed a bug in error.c
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@799 70169cfe-8b10-0410-8925-dcb4b91034d8
- changed behaviour of GWEN_Error_GetSimpleCode(): It now only returns success only if the error code was "0" (thus disregarding severity)
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@798 70169cfe-8b10-0410-8925-dcb4b91034d8
- function GWEN_PluginDescription_GetLongDescrByFormat() now tries to find the localized version of the long description
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@795 70169cfe-8b10-0410-8925-dcb4b91034d8
- added function GWEN_CryptKey_SetKeySpec()- added gct-tool command "readkey" - added blowfish encryption/decryption when using OpenSSL
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@794 70169cfe-8b10-0410-8925-dcb4b91034d8
- added function GWEN_TLV_create()- added function GWEN_TLV_toBuffer()- added function GWEN_TLV_DirectlyToBuffer()- added function GWEN_PluginDescription_dup()- added function GWEN_PluginManager_GetPluginDescr()- csv-plugin: Now returns GWEN_DBIO_CheckFileResultUnknown instead of...
- added function GWEN_Time_DiffSeconds()- introduced sortMode param (GWEN_STRINGLIST_SORT_MODE) for stringlist sort function
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@786 70169cfe-8b10-0410-8925-dcb4b91034d8
2005-07-09 Christian Stimming <stimming@tuhh.de>
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@785 70169cfe-8b10-0410-8925-dcb4b91034d8
- added function GWEN_StringList_Sort()
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@783 70169cfe-8b10-0410-8925-dcb4b91034d8
- args.c: Removed use of flag GWEN_PATH_FLAGS_CREATE_VAR
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@777 70169cfe-8b10-0410-8925-dcb4b91034d8
- fixed a bug in GWEN_Buffer_InsertRoom: Was not adjusting usedBytes field- fixed a bug in GWEN_Buffer_AllocRoom: Was not adding +1 for trailing NULL byte
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@775 70169cfe-8b10-0410-8925-dcb4b91034d8
- added function GWEN_XMLNode_GetLocalizedCharValue()- GWEN_PluginDescription_new() now uses localized version of elements in XML file
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@766 70169cfe-8b10-0410-8925-dcb4b91034d8
- GWEN_Buffer_Crop() now adjusts the pos pointer if it is left behind the end of the buffer by truncating
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@765 70169cfe-8b10-0410-8925-dcb4b91034d8
- GWEN_NetConnectionHTTP: - added state GWEN_NETCONNHTTP_STATE_IGNOREMSG which is used to ignore intermediate HTTP responses (like 100) - added mode GWEN_NETCONN_MODE_RAW. If this is on then all messages received are forwarded to the application. If it is off (default) then intermediate...
2005-04-22 Christian Stimming <stimming@tuhh.de>
- GWEN_PluginManager_LoadPlugin() now uses lowercased module names when loading
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@751 70169cfe-8b10-0410-8925-dcb4b91034d8
2005-04-04 Christian Stimming <stimming@tuhh.de>
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@738 70169cfe-8b10-0410-8925-dcb4b91034d8
Improve debug message
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@736 70169cfe-8b10-0410-8925-dcb4b91034d8
- fixed a bug in WaitCallback (type mismatch)
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@735 70169cfe-8b10-0410-8925-dcb4b91034d8
2005-03-29 Christian Stimming <stimming@tuhh.de>
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@733 70169cfe-8b10-0410-8925-dcb4b91034d8
prepared release
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@726 70169cfe-8b10-0410-8925-dcb4b91034d8
- added message digest SHA1- simplified GWEN_Buffer functions for inserting bytes- added functions - GWEN_Buffer_InsertRoom() - GWEN_Buffer_FillLeftWithBytes() - GWEN_MD_HashToBuffer() - GWEN_Padd_PaddWithPkcs1Bt1() - GWEN_Padd_UnpaddWithPkcs1Bt1()...
- GWEN_NetTransportSSL_StartConnect() no returns GWEN_NetTransportResultWantRead instead of GWEN_NetTransportResultOk when the connect is in progress.- same with GWEN_NetTransportSocket_StartConnect()- GWEN_WaitCallback() now checks all currently entered callbacks...
fixed some newly introduced bugs
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@714 70169cfe-8b10-0410-8925-dcb4b91034d8
- started optimisations of my own: - GWEN_Buffer: - ReadChar() no longer calls PeekChar() - _new(): Now allocate size+1 (less reallocs, in a test from over 700 to 4) - GWEN_BufferedIO: same here - GWEN_XML: - ReadWordBuf now doesn't call CheckEOF, since the return value...
- took back my latest change (argh, we need to discuss those changes)
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@711 70169cfe-8b10-0410-8925-dcb4b91034d8
- partially reverted cs' changes to base/buffer.c: Please dicuss before making changes to this important class, it is widely used (especially GWEN_Buffer_AppendByte).
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@710 70169cfe-8b10-0410-8925-dcb4b91034d8
2005-03-04 Christian Stimming <stimming@tuhh.de>
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@708 70169cfe-8b10-0410-8925-dcb4b91034d8
- added function GWEN_IdList_dup()
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@705 70169cfe-8b10-0410-8925-dcb4b91034d8
- fixed a bug in GWEN_LIST code (could crash the program)
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@695 70169cfe-8b10-0410-8925-dcb4b91034d8
- decreased verbosity
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@677 70169cfe-8b10-0410-8925-dcb4b91034d8