Revision 684381cc
Von aquamaniac vor etwa 20 Jahren hinzugefügt
src/base/waitcallback_p.h | ||
---|---|---|
GWEN_TYPE_UINT64 pos;
|
||
GWEN_TYPE_UINT64 total;
|
||
|
||
char *text;
|
||
char *units;
|
||
|
||
GWEN_WAITCALLBACK_LIST *registeredCallbacks;
|
||
|
||
time_t lastCalled;
|
||
... | ... | |
|
||
int nestingLevel;
|
||
|
||
int aborted;
|
||
|
||
GWEN_TYPE_UINT32 usage;
|
||
};
|
||
|
||
... | ... | |
|
||
GWEN_WAITCALLBACK_RESULT GWEN__WaitCallback(GWEN_WAITCALLBACK *ctx);
|
||
|
||
GWEN_WAITCALLBACK_RESULT GWEN__WaitCallback_r(GWEN_WAITCALLBACK *ctx);
|
||
|
||
void GWEN_WaitCallback__Dump_r(GWEN_WAITCALLBACK *ctx, int ins);
|
||
void GWEN_WaitCallback__Dump(GWEN_WAITCALLBACK *ctx);
|
||
|
||
|
||
#endif
|
||
|
||
|
Auch abrufbar als: Unified diff
- 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
this code as well. Also the condition of returning this code is stored.
- introduced GWEN_WAITCALLBACK_ID_SIMPLE_PROGRESS
- introduced GWEN_WAITCALLBACK_ID_FAST
- introduced flags:
- defined flag GWEN_WAITCALLBACK_FLAGS_NO_REUSE
- defined depth level GWEN_WAITCALLBACK_LEVEL_REUSED
- replaced GWEN_BUFFEREDIO_CBID_IO with GWEN_WAITCALLBACK_ID_FAST
- replaced GWEN_NETCONNECTION_CBID_IO with GWEN_WAITCALLBACK_ID_FAST
- replaced GWEN_FSLOCK_CBID_IO with GWEN_WAITCALLBACK_ID_FAST
- README: Added listing of waitcallback ids
- added "LL" to GWEN_WAITCALLBACK_PROGRESS_NONE.
FIXME: We should better define a MAXVALUE, like GWEN_MAXVAL_UINT64 and
let configure determine this type (like the other stuff), because the
suffix "LL" tells the compiler that this is a "long long" value, which isn't
necessarily the case for 64 bit architectures...
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@810 70169cfe-8b10-0410-8925-dcb4b91034d8