summaryrefslogtreecommitdiff
path: root/librabbitmq/amqp_private.h
Commit message (Collapse)AuthorAgeFilesLines
* Cleaning up Public API decorators on Win32Alan Antonuk2012-05-231-3/+0
| | | | | | | | | | | | | | Removed duplicate #defines of AMQP_PUBLIC/AMQP_PRIVATE in amqp.h & amqp_private.h Split AMQP_PUBLIC into AMQP_PUBLIC_FUNCTION and AMQP_PUBLIC_VARIABLE Added AMQP_CALL to specify calling convention (__cdecl by default) Added -DAMQP_BUILD when building the library Added -DAMQP_STATIC when building the library statically (this is still incomplete on Win32, a installable amqp_config.h is required)
* Set default visibility to hidden & enable a couple more warningsMichael Steinert2012-05-171-3/+21
| | | | | | | | | | | | | | Enable the following GCC options: 1. -Wstrict-prototypes 2. -Wcast-align 3. -fno-common 4. -fvisibility=hidden This commit also includes some general cleanup of header files (mostly for readability). Signed-off-by: Michael Steinert <mike.steinert@gmail.com>
* Fix compiler warnings (checked clang & gcc)Michael Steinert2012-05-171-0/+9
| | | | Signed-off-by: Michael Steinert <mike.steinert@gmail.com>
* Automated relicensing of source files MPL/GPL -> MITMarek Majkowski2012-04-121-26/+20
|
* Update copyright 2012Emile Joubert2012-02-021-1/+1
|
* Add support for parsing amqp URLs to librabbitmqDavid Wragg2011-09-211-1/+2
|
* Comment magical memcpysbug24349David Wragg2011-08-181-2/+6
|
* Don't rely on unaligned accesses or little-endiannessDavid Wragg2011-08-171-7/+27
| | | | | | | | | | This uses memcpy to avoid the unaligned accesses. gcc on x86 seems to do a reasonable job of optimizing them away. gcc on ARM leaves some memcpy calls in the generated code. It might be better in terms of the code generated to use an approach based on packaged structs (that's wwhat the Linux kernel does). But that would depend on compiler-specific syntax.
* Update copyright noticesDavid Wragg2011-03-011-19/+7
| | | | And generally bring debian/copyright up to date.
* Make the examples compile and work under WindowsDavid Wragg2010-10-211-6/+0
|
* Make test_tables.c ISO C90 cleanDavid Wragg2010-10-211-9/+0
| | | | | | | (As long as you have a stdint.h and inttypes.h available.) And kill the unclean macros in amqp.h that were only used from test_tables.c.
* Pass "-ansi -pedantic" to gcc, so it tells us when we stray from C90David Wragg2010-10-211-4/+6
| | | | | | | | And fix up the resulting warnings We don't use "-ansi -pedantic" in the tools dir, because that code relies on libpopt, and so is unlikely ever to work with the Microsoft compiler anyway.
* Eliminate the AMQP_CHECK_RESULT macroDavid Wragg2010-10-211-9/+0
|
* Eliminate the old codec macrosDavid Wragg2010-10-211-25/+0
| | | | They contained gcc-isms.
* Convert other librabbitmq .c files to the new helper functionsDavid Wragg2010-10-211-17/+16
|
* Eliminate the amqp_assert macroDavid Wragg2010-10-211-8/+1
| | | | It relied on gccisms. Replace it with a amqp_abort function.
* Introduce new codec helper inline functions; convert amqp_table.cDavid Wragg2010-10-211-10/+104
| | | | These replace the macros that relied on gccisms.
* Get autoconf to detect the inline function syntaxDavid Wragg2010-10-211-0/+2
|
* Fix "const char *" to "void *" conversion warningsDavid Wragg2010-07-281-1/+1
| | | | | | | | Functions returning a heap-allocated string should return a "char *", not a "const char *": Because the result is heap-allocated and becomes the responsibility of the caller, it is certainly modifiable. And the pointer will likely get passed to free(), triggering a conversion warning from gcc. So remove all the relevant consts.
* ERROR_HOST_NOT_FOUND -> ERROR_GETHOSTBYNAME_FAILEDDavid Wragg2010-07-261-1/+1
|
* A Windows port, using MinGW/MSYSDavid Wragg2010-05-301-4/+1
|
* Make error codes returned by librabbitmq functions opaqueDavid Wragg2010-05-301-8/+25
| | | | | | | | | | | | | Windows doesn't generally use POSIX error codes, which poses a problem for librabbitmq's approach of using those error codes in its API. So make the librabbitmq error codes opaque: They are still be integers, but client code is not supposed to assume anything about them, except that they can be passed to a new amqp_error_string() function which returns the corresponding error message Internally, the error codes are either taken from a set of librabbitmq-specific values, or correspond to an OS-specific (POSIX or win32) error code, with a simple encoding to indicate which is which.
* Update licensing to dual MPL/GPLTony Garnock-Jones2010-02-211-0/+50
|
* Remove amqp_rpc_reply global variable, making it instead state-localTony Garnock-Jones2010-02-181-0/+2
| | | | | | and accessible only through amqp_get_rpc_reply(). Add a better comment on amqp_get_rpc_reply() to be a little clearer about when it's inappropriate to use it.
* Implement Qpid/RabbitMQ/0-9-1 field table types.Tony Garnock-Jones2009-11-171-2/+4
|
* Extend API to permit heartbeat configuration.Tony Garnock-Jones2009-08-201-0/+1
|
* Support for multiple channels.Tony Garnock-Jones2009-05-121-0/+1
| | | | | | | - amqp_login() no longer does amqp_channel_open() for you - amqp_login() takes a channel_max argument - amqp_login() actually calls amqp_tune_connection() now - amqp_channel_close() and amqp_basic_publish() now take a channel number
* Support parsing of protocol header.Tony Garnock-Jones2009-05-101-1/+7
|
* Include arpa/inet.h, for linuxTony Garnock-Jones2009-04-261-0/+2
|
* Publication works!Tony Garnock-Jones2009-04-261-8/+86
|
* More workTony Garnock-Jones2009-04-251-0/+6
|
* Codegen, codecTony Garnock-Jones2009-04-251-0/+48