| 124 | } |
| 125 | |
| 126 | const char *pn_code(int code) |
| 127 | { |
| 128 | switch (code) |
| 129 | { |
| 130 | case 0: return "<ok>"; |
| 131 | case PN_EOS: return "PN_EOS"; |
| 132 | case PN_ERR: return "PN_ERR"; |
| 133 | case PN_OVERFLOW: return "PN_OVERFLOW"; |
| 134 | case PN_UNDERFLOW: return "PN_UNDERFLOW"; |
| 135 | case PN_STATE_ERR: return "PN_STATE_ERR"; |
| 136 | case PN_ARG_ERR: return "PN_ARG_ERR"; |
| 137 | case PN_TIMEOUT: return "PN_TIMEOUT"; |
| 138 | case PN_INTR: return "PN_INTR"; |
| 139 | case PN_INPROGRESS: return "PN_INPROGRESS"; |
| 140 | case PN_OUT_OF_MEMORY: return "PN_OUT_OF_MEMORY"; |
| 141 | case PN_ABORTED: return "PN_ABORTED"; |
| 142 | default: return "<unknown>"; |
| 143 | } |
| 144 | } |
| 145 | |
| 146 | // Deprecated ABI compatibility stubs |
| 147 |
no outgoing calls