Replace use of deprecated functionality
korydraughn opened this issue · 0 comments
korydraughn commented
Compiling the main branch against what will be iRODS 4.3 produces the following:
/home/kory/dev/prog/cpp/irods_rule_engine_plugin_audit_amqp/libirods_rule_engine_plugin-audit_amqp.cpp:126:17: warning: 'pn_messenger' is deprecated [-Wdeprecated-declarations]
messenger = pn_messenger(NULL);
^
/opt/irods-externals/qpid-proton0.36.0-0/include/proton/messenger.h:193:1: note: 'pn_messenger' has been explicitly marked deprecated here
PN_DEPRECATED("Use the Proactor API or Qpid Proton C++")
^
/opt/irods-externals/qpid-proton0.36.0-0/include/proton/import_export.h:75:53: note: expanded from macro 'PN_DEPRECATED'
# define PN_DEPRECATED(message) __attribute__((deprecated))
^
/home/kory/dev/prog/cpp/irods_rule_engine_plugin_audit_amqp/libirods_rule_engine_plugin-audit_amqp.cpp:127:5: warning: 'pn_messenger_start' is deprecated [-Wdeprecated-declarations]
pn_messenger_start(messenger);
^
/opt/irods-externals/qpid-proton0.36.0-0/include/proton/messenger.h:476:1: note: 'pn_messenger_start' has been explicitly marked deprecated here
PN_DEPRECATED("Use the Proactor API or Qpid Proton C++")
^
/opt/irods-externals/qpid-proton0.36.0-0/include/proton/import_export.h:75:53: note: expanded from macro 'PN_DEPRECATED'
# define PN_DEPRECATED(message) __attribute__((deprecated))
^
/home/kory/dev/prog/cpp/irods_rule_engine_plugin_audit_amqp/libirods_rule_engine_plugin-audit_amqp.cpp:128:5: warning: 'pn_messenger_set_blocking' is deprecated [-Wdeprecated-declarations]
pn_messenger_set_blocking(messenger, false); // do not block
^
/opt/irods-externals/qpid-proton0.36.0-0/include/proton/messenger.h:333:1: note: 'pn_messenger_set_blocking' has been explicitly marked deprecated here
PN_DEPRECATED("Use the Proactor API or Qpid Proton C++")
^
/opt/irods-externals/qpid-proton0.36.0-0/include/proton/import_export.h:75:53: note: expanded from macro 'PN_DEPRECATED'
# define PN_DEPRECATED(message) __attribute__((deprecated))
/home/kory/dev/prog/cpp/irods_rule_engine_plugin_audit_amqp/libirods_rule_engine_plugin-audit_amqp.cpp:126:17: warning: 'pn_messenger' is deprecated [-Wdeprecated-declarations]
messenger = pn_messenger(NULL);
^
/opt/irods-externals/qpid-proton0.36.0-0/include/proton/messenger.h:193:1: note: 'pn_messenger' has been explicitly marked deprecated here
PN_DEPRECATED("Use the Proactor API or Qpid Proton C++")
^
/opt/irods-externals/qpid-proton0.36.0-0/include/proton/import_export.h:75:53: note: expanded from macro 'PN_DEPRECATED'
# define PN_DEPRECATED(message) __attribute__((deprecated))
^
/home/kory/dev/prog/cpp/irods_rule_engine_plugin_audit_amqp/libirods_rule_engine_plugin-audit_amqp.cpp:127:5: warning: 'pn_messenger_start' is deprecated [-Wdeprecated-declarations]
pn_messenger_start(messenger);
^
/opt/irods-externals/qpid-proton0.36.0-0/include/proton/messenger.h:476:1: note: 'pn_messenger_start' has been explicitly marked deprecated here
PN_DEPRECATED("Use the Proactor API or Qpid Proton C++")
^
/opt/irods-externals/qpid-proton0.36.0-0/include/proton/import_export.h:75:53: note: expanded from macro 'PN_DEPRECATED'
# define PN_DEPRECATED(message) __attribute__((deprecated))
^
/home/kory/dev/prog/cpp/irods_rule_engine_plugin_audit_amqp/libirods_rule_engine_plugin-audit_amqp.cpp:128:5: warning: 'pn_messenger_set_blocking' is deprecated [-Wdeprecated-declarations]
pn_messenger_set_blocking(messenger, false); // do not block
^
/opt/irods-externals/qpid-proton0.36.0-0/include/proton/messenger.h:333:1: note: 'pn_messenger_set_blocking' has been explicitly marked deprecated here
PN_DEPRECATED("Use the Proactor API or Qpid Proton C++")
^
/opt/irods-externals/qpid-proton0.36.0-0/include/proton/import_export.h:75:53: note: expanded from macro 'PN_DEPRECATED'
# define PN_DEPRECATED(message) __attribute__((deprecated))