summaryrefslogtreecommitdiff
path: root/librabbitmq/codegen.py
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright & license header to use SPDX idAlan Antonuk2021-07-271-102/+10
| | | | | | | This makes license detection machine-readable, and makes source files more concise and easier to read and understand. Signed-off-by: GitHub <noreply@github.com>
* lib: update framing regenerator to use python 3Alan Antonuk2021-04-201-96/+94
| | | | Signed-off-by: GitHub <noreply@github.com>
* lib: Fix minor issues with codegenAlan Antonuk2021-04-201-0/+1
| | | | Signed-off-by: GitHub <noreply@github.com>
* cmake: use GenerateExportHeader for AMQP_EXPORTAlan Antonuk2021-04-061-14/+14
| | | | | | | | | | Use cmake's GenerateExportHeader to define AMQP_EXPORT & AMQP_DEPRECATED over the one in amqp.h. This is likely to be more correct over time. Note this requires bumping the minimum required version from v3.10 to v3.12 to pick up support in CMake for C libraries. Signed-off-by: GitHub <noreply@github.com>
* Remove vim mode lines.formatAlan Antonuk2017-12-041-1/+0
| | | | They're hard to keep in sync with .clang-format or other tools.
* Fix int truncation warnings on Win32Alan Antonuk2015-05-041-3/+5
|
* Alloc an struct when decoding methods w/o fieldsAlan Antonuk2014-12-291-6/+3
| | | | | | | For consistency sake, allocate and return a struct when decoding methods that don't have fields. Fixes #225
* Enable auto_delete & internal for exchange.declaredeclare_xchg_parmsAlan Antonuk2014-10-191-1/+0
| | | | | | | | Enable auto_delete and internal parameters of amqp_exchange_declare() in codegen. These were once not generated because RabbitMQ did not support these parameters. The broker now supports these and so should we. This fixes #218
* Document public APIAlan Antonuk2013-08-131-17/+99
|
* Move amqp_os_socket* funcs to amqp_socket.h/cAlan Antonuk2013-06-131-1/+0
| | | | | Doing this for code clarity, as its easier to see what the issues are when you have all implementations in one file
* Expose public error-code interfaceAlan Antonuk2013-06-131-14/+14
| | | | | | | | | | Publicly define the error codes returned from the various public API functions. The error codes are defined in the amqp_status_enum and are all negative in value to work with functions that return positive values. OS and SSL specific codes are no longer munged into the error code, as it is unlikely for that information to be useful to library users.
* Updating license yearAlan Antonuk2013-04-081-0/+9
|
* Adding vim modelines to help with source formattingAlan Antonuk2013-04-051-0/+1
|
* Build without amqp_framing.py codegenAlan Antonuk2013-01-161-2/+2
| | | | | | | | Changes to support building rabbitmq-c without having run the python code generator, or do a git submodule init/update. This is to facilitate creating links to downloadable source archives from github
* Codegen.py should emit license in amqp_framing.hAlan Antonuk2013-01-151-1/+33
|
* Python 3.x support in codegen.py (via 2to3)Alan Antonuk2012-10-041-1/+2
| | | | | | Changes to librabbitmq/codegen.py to support Python3 Upstream changes to rabbitmq-codegen/amqp_codegen.py to support Python3
* Cleaning up Public API decorators on Win32Alan Antonuk2012-05-231-21/+21
| | | | | | | | | | | | | | 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-34/+54
| | | | | | | | | | | | | | 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>
* Merge remote-tracking branch 'upstream/bug24770'Alan Antonuk2012-04-121-52/+40
|\
| * Python uses different comments than CMarek Majkowski2012-04-121-27/+27
| |
| * Automated relicensing of source files MPL/GPL -> MITMarek Majkowski2012-04-121-59/+47
| |
* | Merge remote-tracking branch 'upstream/bug24606'Alan Antonuk2012-04-121-2/+2
|\ \ | |/
| * Update copyright 2012Emile Joubert2012-02-021-2/+2
| |
* | amqp_framing.h should include amqp.hAlan Antonuk2012-03-061-0/+2
|/ | | | amqp_framing.h uses typedefs that are defined in amqp.h
* Remove trailing whitespaceDavid Wragg2011-07-051-1/+1
|
* Include a license block in generated filesDavid Wragg2011-03-021-11/+49
| | | | For consistency with broker codegen.
* Python doesn't like C commentsDavid Wragg2011-03-011-35/+35
|
* Update copyright noticesDavid Wragg2011-03-011-47/+35
| | | | And generally bring debian/copyright up to date.
* Extract common code from generated API functionsDavid Wragg2011-01-141-12/+4
|
* Generate API functions corresponding to most synchronous methodsDavid Wragg2011-01-071-7/+112
| | | | | | | | | | There's a lot of boilerplate code in amqp_api.c for API functions corresponding to synchronous AMQP methods. And some of the functions that should be there are missing (e.g. basic.qos, basic.cancel). Instead, we can generate these functions from the protocol definition, plus a little information to describe where the function arguments do not reflect all of the method fields.
* Make the examples compile and work under WindowsDavid Wragg2010-10-211-1/+1
|
* Convert generated code to use the new codec helper functionsDavid Wragg2010-10-211-151/+188
|
* Don't produce empty structs in generated codeDavid Wragg2010-10-211-2/+5
| | | | ISO C doesn't allow empty structs; they are a gcc extension.
* merged default into bug22951Alexandru Scvortov2010-08-041-0/+1
|\
| * this branch is default with amqp_0_9_1 merged in; everything seems to work fineAlexandru Scvortov2010-07-091-0/+1
| |
* | A Windows port, using MinGW/MSYSDavid Wragg2010-05-301-0/+1
| |
* | Make error codes returned by librabbitmq functions opaqueDavid Wragg2010-05-301-8/+6
|/ | | | | | | | | | | | | 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.
* Only allocate and check if we would ask for more than zero bytesTony Garnock-Jones2010-04-201-3/+6
|
* Check results of amqp_pool_alloc() and friends.Tony Garnock-Jones2010-04-161-0/+2
|
* Include stdint.h in generated C. HT @geoffgarside.Tony Garnock-Jones2010-03-301-0/+1
|
* Update licensing to dual MPL/GPLTony Garnock-Jones2010-02-211-30/+47
|
* Add "autogenerated code" comment to codegen.Tony Garnock-Jones2010-01-121-1/+4
|
* Add amqp_constant_name() and amqp_constant_is_hard_error().Tony Garnock-Jones2010-01-091-0/+21
|
* Add missing flagword_index incrementTony Garnock-Jones2009-08-121-0/+1
|
* Introduce more mid-level APITony Garnock-Jones2009-05-071-1/+2
|
* Avoid stomping on flags during content properties encoding.Tony Garnock-Jones2009-04-261-9/+14
|
* Publication works!Tony Garnock-Jones2009-04-261-26/+10
|
* More workTony Garnock-Jones2009-04-251-0/+20
|
* Codegen, codecTony Garnock-Jones2009-04-251-159/+250
|
* Start work on codegenTony Garnock-Jones2009-04-251-0/+342