]> granicus.if.org Git - openjpeg/commitdiff
[trunk] move opj_event_mgr struct from openjpeg. h to event.h
authorMickael Savinaud <savmickael@users.noreply.github.com>
Mon, 29 Oct 2012 22:02:02 +0000 (22:02 +0000)
committerMickael Savinaud <savmickael@users.noreply.github.com>
Mon, 29 Oct 2012 22:02:02 +0000 (22:02 +0000)
src/lib/openjp2/event.h
src/lib/openjp2/openjpeg.h

index f80067ad2e487493619a8a99c725b76a490620fa..39d980d6ddb90962744d01a5f26c7efd139b30cf 100644 (file)
@@ -40,7 +40,6 @@ used for
 <li>Debugging messages
 </ul>
 */
-#if 0
 typedef struct opj_event_mgr 
 {
        /** Data to call the event manager upon */
@@ -56,7 +55,7 @@ typedef struct opj_event_mgr
        /** Debug message callback if available, NULL otherwise */
        opj_msg_callback info_handler;
 } opj_event_mgr_t;
-#endif
+
 
 #define EVT_ERROR      1       /**< Error event type */
 #define EVT_WARNING    2       /**< Warning event type */
index 1e23480aa87c2a249aeb47c3128dfea9e5c26b0b..44fb84924f74f71151f283b7deea2255d1d7eb5f 100644 (file)
@@ -226,33 +226,6 @@ typedef enum LIMIT_DECODING {
  * */
 typedef void (*opj_msg_callback) (const char *msg, void *client_data);
 
-
-
-/** SHOULD BE MOVE IN EVENT.H when we remove old functions TODO MSD
-Message handler object
-used for 
-<ul>
-<li>Error messages
-<li>Warning messages
-<li>Debugging messages
-</ul>
-*/
-typedef struct opj_event_mgr 
-{
-       /** Data to call the event manager upon */
-       void *                  m_error_data;
-       /** Data to call the event manager upon */
-       void *                  m_warning_data;
-       /** Data to call the event manager upon */
-       void *                  m_info_data;
-       /** Error message callback if available, NULL otherwise */
-       opj_msg_callback error_handler;
-       /** Warning message callback if available, NULL otherwise */
-       opj_msg_callback warning_handler;
-       /** Debug message callback if available, NULL otherwise */
-       opj_msg_callback info_handler;
-} opj_event_mgr_t;
-
 /* 
 ==========================================================
    codec typedef definitions