[SCM] Debian packaging for jack-audio-connection-kit branch, master, updated. debian/0.116.1-4-80-gcf1c9b7

adiknoth-guest at users.alioth.debian.org adiknoth-guest at users.alioth.debian.org
Mon Sep 28 14:14:38 UTC 2009


The following commit has been merged in the master branch:
commit cf1c9b7da40e195cdb4bcc089cb1385431072457
Author: Adrian Knoth <adi at drcomp.erfurt.thur.de>
Date:   Mon Sep 28 14:35:07 2009 +0200

    Warn on deprecated API functions. (Closes: #548537)
    
    GCC will issue a warning on deprecated API parts, so programmers will
    be told early instead of fixing it later.
    
    This patch has been sent to upstream and is waiting for inclusion. It
    can be removed when it hits their repository.

diff --git a/debian/patches/30_warn_deprecated.patch b/debian/patches/30_warn_deprecated.patch
new file mode 100644
index 0000000..6d0e0e7
--- /dev/null
+++ b/debian/patches/30_warn_deprecated.patch
@@ -0,0 +1,131 @@
+This patch adds compiler warnings for deprecated functions and types.
+
+GCC will issue a warning on deprecated API parts, so programmers will
+be told early instead of fixing it later.
+
+This patch has been sent to upstream and is waiting for inclusion. It
+can be removed when it hits their repository.
+
+See http://bugs.debian.org/548537 for the whole story.
+
+diff --git a/jack/jack.h b/jack/jack.h
+index 3415905..1bcb51a 100644
+--- a/jack/jack.h
++++ b/jack/jack.h
+@@ -81,7 +81,7 @@ jack_client_t *jack_client_open (const char *client_name,
+  *  NEW JACK CLIENTS</b>
+  *
+  */
+-jack_client_t *jack_client_new (const char *client_name);
++jack_client_t *jack_client_new (const char *client_name) JACK_DEPRECATED;
+ 
+ /**
+  * Disconnects an external client from a JACK server.
+@@ -127,14 +127,14 @@ char *jack_get_client_name (jack_client_t *client);
+  */
+ int jack_internal_client_new (const char *client_name,
+ 			      const char *load_name,
+-			      const char *load_init);
++			      const char *load_init) JACK_DEPRECATED;
+ 
+ /**
+  * Remove an internal client from a JACK server.
+  *
+  * @deprecated Please use jack_internal_client_load().
+  */
+-void jack_internal_client_close (const char *client_name);
++void jack_internal_client_close (const char *client_name) JACK_DEPRECATED;
+ 
+ /**
+  * Tell the Jack server that the program is ready to start processing
+@@ -182,7 +182,7 @@ int jack_is_realtime (jack_client_t *client);
+  * It should be replace by use of @ jack_cycle_wait and @ jack_cycle_signal functions.
+  *
+  */
+-jack_nframes_t jack_thread_wait (jack_client_t*, int status);
++jack_nframes_t jack_thread_wait (jack_client_t*, int status) JACK_DEPRECATED;
+ 
+ /**
+  * Wait until this JACK client should process data.
+@@ -442,7 +442,7 @@ jack_nframes_t jack_get_buffer_size (jack_client_t *);
+  *
+  * @return ENOSYS, function not implemented.
+  */
+-int  jack_engine_takeover_timebase (jack_client_t *);
++int  jack_engine_takeover_timebase (jack_client_t *) JACK_DEPRECATED;
+ 
+ /**
+  * @return the current CPU load estimated by JACK.  This is a running
+@@ -603,7 +603,7 @@ const char **jack_port_get_all_connections (const jack_client_t *client,
+  * turned out to serve essentially no purpose in real-life
+  * JACK clients.
+  */
+-int  jack_port_tie (jack_port_t *src, jack_port_t *dst);
++int  jack_port_tie (jack_port_t *src, jack_port_t *dst) JACK_DEPRECATED;
+ 
+ /**
+  *
+@@ -612,7 +612,7 @@ int  jack_port_tie (jack_port_t *src, jack_port_t *dst);
+  * turned out to serve essentially no purpose in real-life
+  * JACK clients.
+  */
+-int  jack_port_untie (jack_port_t *port);
++int  jack_port_untie (jack_port_t *port) JACK_DEPRECATED;
+ 
+ /** 
+  * @return the time (in frames) between data being available or
+diff --git a/jack/transport.h b/jack/transport.h
+index 69e70e2..4794e52 100644
+--- a/jack/transport.h
++++ b/jack/transport.h
+@@ -410,7 +410,7 @@ typedef enum {
+ 	JackTransportSMPTE =    0x8,	/**< SMPTE (ignored) */
+ 	JackTransportBBT =      0x10	/**< Bar, Beat, Tick */
+ 
+-} jack_transport_bits_t;
++} jack_transport_bits_t JACK_DEPRECATED;
+ 
+ /**
+  * Deprecated struct for transport position information.
+@@ -444,7 +444,7 @@ typedef struct {
+     double         ticks_per_beat;
+     double         beats_per_minute;
+ 
+-} jack_transport_info_t;
++} jack_transport_info_t JACK_DEPRECATED;
+ 	
+ /**
+  * Gets the current transport info structure (deprecated).
+@@ -459,7 +459,7 @@ typedef struct {
+  * @pre Must be called from the process thread.
+  */
+ void jack_get_transport_info (jack_client_t *client,
+-			      jack_transport_info_t *tinfo);
++			      jack_transport_info_t *tinfo) JACK_DEPRECATED;
+ 
+ /**
+  * Set the transport info structure (deprecated).
+@@ -469,7 +469,7 @@ void jack_get_transport_info (jack_client_t *client,
+  * a ::JackTimebaseCallback.
+  */
+ void jack_set_transport_info (jack_client_t *client,
+-			      jack_transport_info_t *tinfo);
++			      jack_transport_info_t *tinfo) JACK_DEPRECATED;
+ 
+ #ifdef __cplusplus
+ }
+diff --git a/jack/types.h b/jack/types.h
+index 020a51b..014e623 100644
+--- a/jack/types.h
++++ b/jack/types.h
+@@ -397,4 +397,10 @@ enum JackStatus {
+  */
+ typedef enum JackStatus jack_status_t;
+ 
++#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3 )                   
++# define JACK_DEPRECATED __attribute__((__deprecated__))                      
++#else                                                                         
++# define JACK_DEPRECATED                                                      
++#endif
++
+ #endif /* __jack_types_h__ */

-- 
Debian packaging for jack-audio-connection-kit



More information about the pkg-multimedia-commits mailing list