summaryrefslogtreecommitdiff
path: root/tools/common.c
Commit message (Collapse)AuthorAgeFilesLines
* 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