summaryrefslogtreecommitdiff
path: root/hiredis.h
AgeCommit message (Collapse)Author
2011-02-04Use select(2) for enforce a timeout on blocking connect(2)Pieter Noordhuis
2011-01-27redisReplyReaderFeed should take a const char*Pieter Noordhuis
2011-01-27Avoid warnings with -Wstrict-prototypesPieter Noordhuis
2011-01-07Return error on socket timeout for a blocking contextPieter Noordhuis
2010-12-31Change reply processing code to prepare for pub/subPieter Noordhuis
2010-12-28Fix the async free() and disconnect() functionsPieter Noordhuis
To make sure that these functions can also be called from functions other than command callbacks, the flag IN_CALLBACK is introduced that holds whether the context is currently executing a callback. If so, redisAsyncFree() and redisAsyncDisconnect() should delegate their task to the reply processor to avoid segfaults.
2010-12-28Add function to explicitly free an async contextPieter Noordhuis
2010-12-16Bump versionPieter Noordhuis
2010-12-16Add myself to license in some filesPieter Noordhuis
2010-12-16Redefine REDIS_REPLY_ERROR to be non-zeroPieter Noordhuis
When no reply object functions are defined, the reply type integer is returned from redisGetReply(). This sets the *reply argument to the consumed reply, where 0 means that it was not possible to consume a full reply. With REDIS_REPLY_ERROR having the same value, there is no way to tell the difference between an error reply and not consuming a reply.
2010-11-26Bump versionPieter Noordhuis
2010-11-26Rename 'parent' field in read tasks to 'obj'Pieter Noordhuis
2010-11-24Add pointer to parent task in read tasksPieter Noordhuis
2010-11-24Add privdata field to reply readerPieter Noordhuis
This field is set in the read tasks that are passed to the reply object functions. This allows to curry arbitrary data to these functions.
2010-11-19add extern "C" for C++ compilesRyan Tecco
2010-11-04The buffer length to feed should be a size_tPieter Noordhuis
2010-11-04Return the reply type when the reply object function set is NULLPieter Noordhuis
2010-11-03Add version information to hiredis.hPieter Noordhuis
2010-11-03Allow to connect using a unix socket from hiredisPieter Noordhuis
2010-11-03Expose redisGetReplyFromReader as public APIPieter Noordhuis
2010-11-02Strip net.c down to the bare minimumPieter Noordhuis
2010-11-02Change error reporting to have an explicit typePieter Noordhuis
When there is an I/O error, errno should be used to find out what is wrong. In other cases, errno cannot be used. So, use an explicit type in Hiredis to define the different error scenarios that can occur.
2010-11-02Remove superfluous definitionPieter Noordhuis
2010-11-01There is no longer need for a separate redisDisconnectPieter Noordhuis
2010-11-01Strip non-blocking callbacks from hiredis.cPieter Noordhuis
2010-11-01Add support to lazily disconnect an asynchronous connectionPieter Noordhuis
2010-10-31Move include of stdio.h to hiredis.h for size_tPieter Noordhuis
2010-10-31Move stdarg.h include to the hiredis header filePieter Noordhuis
2010-10-31The reply object functions may not change the read tasksPieter Noordhuis
2010-10-31Use a fixed size stack instead of a dynamic list for read tasksPieter Noordhuis
2010-10-31Remove reply object functions from connect functionsPieter Noordhuis
2010-10-31Refactor internal function flow and add redisAppendCommand* familyPieter Noordhuis
2010-10-31First step in decoupling reply callbacks from internalsPieter Noordhuis
2010-10-31Format a command using an argument vectorPieter Noordhuis
2010-10-30Change redisFormatCommand to return the command in a char*Pieter Noordhuis
This allows users of the API to format a command without the need to have all the sds functions included, only for free'ing the returned wire-level command.
2010-10-30Drop dependency on sds.h for exposed APIPieter Noordhuis
2010-10-30Rename structPieter Noordhuis
2010-10-19Revert e5dd32d8 that added the const qualifier for command callbacksPieter Noordhuis
2010-10-19Revert privdata in context callbacks to being non-constPieter Noordhuis
2010-10-18Move context callbacks into struct and make privdata constPieter Noordhuis
2010-10-12Add comments for function prototypes in hiredis.hPieter Noordhuis
2010-10-11Move event_base code out of libevent.hPieter Noordhuis
This removes the need to wrap an event_base pointer in the redisContext struct and allows multiple connections to be used in a single event_base. Also, use the *privdata argument to the provided callbacks to curry the redisEvent struct around.
2010-10-10Added event_base to libevent code.Nicolas Favre-Felix
2010-10-07Fire callback when the context is being disconnected by the userPieter Noordhuis
2010-10-07Add const qualifier to privdata pointer for command callbacksPieter Noordhuis
2010-09-25Trigger callbacks when a command is issued or the context is free'dPieter Noordhuis
2010-09-25Add function to free an allocated contextPieter Noordhuis
2010-09-25Rename HIREDIS_BLOCK to REDIS_BLOCKPieter Noordhuis
2010-09-25Deprecate the error object for I/O and protocol errorsPieter Noordhuis
Rather, use the return value REDIS_OK and REDIS_ERR to designate if calling a function has a successful outcome. When there was an error in performing the call the error field will be set inside the reader or the context.
2010-09-25Rename defines HIREDIS_* to REDIS_*Pieter Noordhuis