summaryrefslogtreecommitdiff
path: root/tools/common.c
Commit message (Collapse)AuthorAgeFilesLines
* Adding more strict compile Warning flags to gcc buildAlan Antonuk2012-05-241-1/+4
| | | | | | | | Added: -Wall -Wextra -pedantic -Wstrict-prototypes -Wcast-align -Wno-unused-function -fno-common -fvisibility=hidden The library compiles cleanly with the exception of the tools dir which has trouble with the initializer lists
* Fix compiler warnings (checked clang & gcc)Michael Steinert2012-05-171-4/+5
| | | | Signed-off-by: Michael Steinert <mike.steinert@gmail.com>
* Add config.h header guardsMichael Steinert2012-05-171-0/+2
| | | | 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 amqp URL support to the toolsbug24440David Wragg2011-09-211-28/+119
|
* die_errno should use the err parameter, not errnoDavid Wragg2011-07-051-1/+1
|
* Remove trailing whitespaceDavid Wragg2011-07-051-14/+14
|
* Update copyright noticesDavid Wragg2011-03-011-19/+7
| | | | And generally bring debian/copyright up to date.
* Eliminate the AMQP_EMPTY_* macros from amqp.hDavid Wragg2010-10-211-1/+1
| | | | Hooray, amqp.h is now ISO C90 clean.
* Harmonize uses of die_amqp_error: it now expects the result code, with ↵bug23163Tony Garnock-Jones2010-08-201-6/+6
| | | | negative meaning error
* Fix "const char *" to "void *" conversion warningsDavid Wragg2010-07-281-2/+2
| | | | | | | | 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.
* Free heap-allocated error stringsDavid Wragg2010-07-271-6/+13
| | | | Even though we are about to exit anyway.
* Fold amqp_end_connection socket closing into amqp_destroy_connectionDavid Wragg2010-07-261-1/+1
|
* A Windows port, using MinGW/MSYSDavid Wragg2010-05-301-56/+3
|
* Make error codes returned by librabbitmq functions opaqueDavid Wragg2010-05-301-30/+24
| | | | | | | | | | | | | 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.
* Add amqp_end_connection, which closes the socket and destroys the connectionDavid Wragg2010-05-301-6/+5
|
* Move all includes of popt.h into common.h, which depends on it anywayDavid Wragg2010-05-301-2/+0
|
* Add docbook-based man pages for toolsDavid Wragg2010-05-251-1/+1
|
* Move the common_consume code into consume.cDavid Wragg2010-05-251-1/+1
| | | | | | 95% of the options provided by the common_consume code don't actually make sense for amqp-get, and now I find myself documenting them, it seems more sensible to restrict them to amqp-consume.
* amqp-consume should display usage info when the command is omitted.David Wragg2010-02-231-4/+3
|
* Add license blockDavid Wragg2010-02-211-0/+50
|
* Command line AMQP tools based on rabbitmq-cDavid Wragg2010-02-201-0/+364