Rex Dieter fa5f53
From 30122df4faf7ccc79b9525db95f55c5a8ed6fe4d Mon Sep 17 00:00:00 2001
Rex Dieter fa5f53
From: Takashi Iwai <tiwai@suse.de>
Rex Dieter fa5f53
Date: Thu, 25 Apr 2013 09:52:33 +0200
Rex Dieter fa5f53
Subject: [PATCH 4/6] Use __inline__ for exported headers
Rex Dieter fa5f53
Rex Dieter fa5f53
Some programs are still using C90.
Rex Dieter fa5f53
Rex Dieter fa5f53
Bugzilla: https://bugzilla.novell.com/show_bug.cgi?id=817077
Rex Dieter fa5f53
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Rex Dieter fa5f53
---
Rex Dieter fa5f53
 include/control.h     |  4 ++--
Rex Dieter fa5f53
 include/iatomic.h     | 14 +++++++-------
Rex Dieter fa5f53
 include/pcm.h         |  2 +-
Rex Dieter fa5f53
 include/pcm_extplug.h |  4 ++--
Rex Dieter fa5f53
 include/use-case.h    |  4 ++--
Rex Dieter fa5f53
 5 files changed, 14 insertions(+), 14 deletions(-)
Rex Dieter fa5f53
Rex Dieter fa5f53
diff --git a/include/control.h b/include/control.h
Rex Dieter fa5f53
index 27fe2ac..5fdf379 100644
Rex Dieter fa5f53
--- a/include/control.h
Rex Dieter fa5f53
+++ b/include/control.h
Rex Dieter fa5f53
@@ -234,7 +234,7 @@ int snd_ctl_open_lconf(snd_ctl_t **ctl, const char *name, int mode, snd_config_t
Rex Dieter fa5f53
 int snd_ctl_open_fallback(snd_ctl_t **ctl, snd_config_t *root, const char *name, const char *orig_name, int mode);
Rex Dieter fa5f53
 int snd_ctl_close(snd_ctl_t *ctl);
Rex Dieter fa5f53
 int snd_ctl_nonblock(snd_ctl_t *ctl, int nonblock);
Rex Dieter fa5f53
-static inline int snd_ctl_abort(snd_ctl_t *ctl) { return snd_ctl_nonblock(ctl, 2); }
Rex Dieter fa5f53
+static __inline__ int snd_ctl_abort(snd_ctl_t *ctl) { return snd_ctl_nonblock(ctl, 2); }
Rex Dieter fa5f53
 int snd_async_add_ctl_handler(snd_async_handler_t **handler, snd_ctl_t *ctl, 
Rex Dieter fa5f53
 			      snd_async_callback_t callback, void *private_data);
Rex Dieter fa5f53
 snd_ctl_t *snd_async_handler_get_ctl(snd_async_handler_t *handler);
Rex Dieter fa5f53
@@ -532,7 +532,7 @@ int snd_hctl_open(snd_hctl_t **hctl, const char *name, int mode);
Rex Dieter fa5f53
 int snd_hctl_open_ctl(snd_hctl_t **hctlp, snd_ctl_t *ctl);
Rex Dieter fa5f53
 int snd_hctl_close(snd_hctl_t *hctl);
Rex Dieter fa5f53
 int snd_hctl_nonblock(snd_hctl_t *hctl, int nonblock);
Rex Dieter fa5f53
-static inline int snd_hctl_abort(snd_hctl_t *hctl) { return snd_hctl_nonblock(hctl, 2); }
Rex Dieter fa5f53
+static __inline__ int snd_hctl_abort(snd_hctl_t *hctl) { return snd_hctl_nonblock(hctl, 2); }
Rex Dieter fa5f53
 int snd_hctl_poll_descriptors_count(snd_hctl_t *hctl);
Rex Dieter fa5f53
 int snd_hctl_poll_descriptors(snd_hctl_t *hctl, struct pollfd *pfds, unsigned int space);
Rex Dieter fa5f53
 int snd_hctl_poll_descriptors_revents(snd_hctl_t *ctl, struct pollfd *pfds, unsigned int nfds, unsigned short *revents);
Rex Dieter fa5f53
diff --git a/include/iatomic.h b/include/iatomic.h
Rex Dieter fa5f53
index e92dbfd..5711fe8 100644
Rex Dieter fa5f53
--- a/include/iatomic.h
Rex Dieter fa5f53
+++ b/include/iatomic.h
Rex Dieter fa5f53
@@ -980,7 +980,7 @@ static __inline__ int atomic_dec_and_test(volatile atomic_t *v)
Rex Dieter fa5f53
 	return result;
Rex Dieter fa5f53
 }
Rex Dieter fa5f53
 
Rex Dieter fa5f53
-static inline int atomic_add_negative(int i, volatile atomic_t *v)
Rex Dieter fa5f53
+static __inline__ int atomic_add_negative(int i, volatile atomic_t *v)
Rex Dieter fa5f53
 {
Rex Dieter fa5f53
 	unsigned long flags;
Rex Dieter fa5f53
 	int result;
Rex Dieter fa5f53
@@ -1160,36 +1160,36 @@ typedef struct {
Rex Dieter fa5f53
 
Rex Dieter fa5f53
 void snd_atomic_read_wait(snd_atomic_read_t *t);
Rex Dieter fa5f53
 
Rex Dieter fa5f53
-static inline void snd_atomic_write_init(snd_atomic_write_t *w)
Rex Dieter fa5f53
+static __inline__ void snd_atomic_write_init(snd_atomic_write_t *w)
Rex Dieter fa5f53
 {
Rex Dieter fa5f53
 	w->begin = 0;
Rex Dieter fa5f53
 	w->end = 0;
Rex Dieter fa5f53
 }
Rex Dieter fa5f53
 
Rex Dieter fa5f53
-static inline void snd_atomic_write_begin(snd_atomic_write_t *w)
Rex Dieter fa5f53
+static __inline__ void snd_atomic_write_begin(snd_atomic_write_t *w)
Rex Dieter fa5f53
 {
Rex Dieter fa5f53
 	w->begin++;
Rex Dieter fa5f53
 	wmb();
Rex Dieter fa5f53
 }
Rex Dieter fa5f53
 
Rex Dieter fa5f53
-static inline void snd_atomic_write_end(snd_atomic_write_t *w)
Rex Dieter fa5f53
+static __inline__ void snd_atomic_write_end(snd_atomic_write_t *w)
Rex Dieter fa5f53
 {
Rex Dieter fa5f53
 	wmb();
Rex Dieter fa5f53
 	w->end++;
Rex Dieter fa5f53
 }
Rex Dieter fa5f53
 
Rex Dieter fa5f53
-static inline void snd_atomic_read_init(snd_atomic_read_t *r, snd_atomic_write_t *w)
Rex Dieter fa5f53
+static __inline__ void snd_atomic_read_init(snd_atomic_read_t *r, snd_atomic_write_t *w)
Rex Dieter fa5f53
 {
Rex Dieter fa5f53
 	r->write = w;
Rex Dieter fa5f53
 }
Rex Dieter fa5f53
 
Rex Dieter fa5f53
-static inline void snd_atomic_read_begin(snd_atomic_read_t *r)
Rex Dieter fa5f53
+static __inline__ void snd_atomic_read_begin(snd_atomic_read_t *r)
Rex Dieter fa5f53
 {
Rex Dieter fa5f53
 	r->end = r->write->end;
Rex Dieter fa5f53
 	rmb();
Rex Dieter fa5f53
 }
Rex Dieter fa5f53
 
Rex Dieter fa5f53
-static inline int snd_atomic_read_ok(snd_atomic_read_t *r)
Rex Dieter fa5f53
+static __inline__ int snd_atomic_read_ok(snd_atomic_read_t *r)
Rex Dieter fa5f53
 {
Rex Dieter fa5f53
 	rmb();
Rex Dieter fa5f53
 	return r->end == r->write->begin;
Rex Dieter fa5f53
diff --git a/include/pcm.h b/include/pcm.h
Rex Dieter fa5f53
index e440030..95b8aed 100644
Rex Dieter fa5f53
--- a/include/pcm.h
Rex Dieter fa5f53
+++ b/include/pcm.h
Rex Dieter fa5f53
@@ -451,7 +451,7 @@ int snd_pcm_poll_descriptors_count(snd_pcm_t *pcm);
Rex Dieter fa5f53
 int snd_pcm_poll_descriptors(snd_pcm_t *pcm, struct pollfd *pfds, unsigned int space);
Rex Dieter fa5f53
 int snd_pcm_poll_descriptors_revents(snd_pcm_t *pcm, struct pollfd *pfds, unsigned int nfds, unsigned short *revents);
Rex Dieter fa5f53
 int snd_pcm_nonblock(snd_pcm_t *pcm, int nonblock);
Rex Dieter fa5f53
-static inline int snd_pcm_abort(snd_pcm_t *pcm) { return snd_pcm_nonblock(pcm, 2); }
Rex Dieter fa5f53
+static __inline__ int snd_pcm_abort(snd_pcm_t *pcm) { return snd_pcm_nonblock(pcm, 2); }
Rex Dieter fa5f53
 int snd_async_add_pcm_handler(snd_async_handler_t **handler, snd_pcm_t *pcm, 
Rex Dieter fa5f53
 			      snd_async_callback_t callback, void *private_data);
Rex Dieter fa5f53
 snd_pcm_t *snd_async_handler_get_pcm(snd_async_handler_t *handler);
Rex Dieter fa5f53
diff --git a/include/pcm_extplug.h b/include/pcm_extplug.h
Rex Dieter fa5f53
index 884f322..e3b71bc 100644
Rex Dieter fa5f53
--- a/include/pcm_extplug.h
Rex Dieter fa5f53
+++ b/include/pcm_extplug.h
Rex Dieter fa5f53
@@ -188,7 +188,7 @@ int snd_pcm_extplug_set_slave_param_minmax(snd_pcm_extplug_t *extplug, int type,
Rex Dieter fa5f53
 /**
Rex Dieter fa5f53
  * set the parameter constraint with a single value
Rex Dieter fa5f53
  */
Rex Dieter fa5f53
-static inline int snd_pcm_extplug_set_param(snd_pcm_extplug_t *extplug, int type, unsigned int val)
Rex Dieter fa5f53
+static __inline__ int snd_pcm_extplug_set_param(snd_pcm_extplug_t *extplug, int type, unsigned int val)
Rex Dieter fa5f53
 {
Rex Dieter fa5f53
 	return snd_pcm_extplug_set_param_list(extplug, type, 1, &val;;
Rex Dieter fa5f53
 }
Rex Dieter fa5f53
@@ -196,7 +196,7 @@ static inline int snd_pcm_extplug_set_param(snd_pcm_extplug_t *extplug, int type
Rex Dieter fa5f53
 /**
Rex Dieter fa5f53
  * set the parameter constraint for slave PCM with a single value
Rex Dieter fa5f53
  */
Rex Dieter fa5f53
-static inline int snd_pcm_extplug_set_slave_param(snd_pcm_extplug_t *extplug, int type, unsigned int val)
Rex Dieter fa5f53
+static __inline__ int snd_pcm_extplug_set_slave_param(snd_pcm_extplug_t *extplug, int type, unsigned int val)
Rex Dieter fa5f53
 {
Rex Dieter fa5f53
 	return snd_pcm_extplug_set_slave_param_list(extplug, type, 1, &val;;
Rex Dieter fa5f53
 }
Rex Dieter fa5f53
diff --git a/include/use-case.h b/include/use-case.h
Rex Dieter fa5f53
index defd4ea..93b3456 100644
Rex Dieter fa5f53
--- a/include/use-case.h
Rex Dieter fa5f53
+++ b/include/use-case.h
Rex Dieter fa5f53
@@ -354,7 +354,7 @@ int snd_use_case_mgr_reset(snd_use_case_mgr_t *uc_mgr);
Rex Dieter fa5f53
  * \param list Returned allocated list
Rex Dieter fa5f53
  * \return Number of list entries if success, otherwise a negative error code
Rex Dieter fa5f53
  */
Rex Dieter fa5f53
-static inline int snd_use_case_card_list(const char **list[])
Rex Dieter fa5f53
+static __inline__ int snd_use_case_card_list(const char **list[])
Rex Dieter fa5f53
 {
Rex Dieter fa5f53
 	return snd_use_case_get_list(NULL, NULL, list);
Rex Dieter fa5f53
 }
Rex Dieter fa5f53
@@ -365,7 +365,7 @@ static inline int snd_use_case_card_list(const char **list[])
Rex Dieter fa5f53
  * \param list Returned list of verbs
Rex Dieter fa5f53
  * \return Number of list entries if success, otherwise a negative error code
Rex Dieter fa5f53
  */
Rex Dieter fa5f53
-static inline int snd_use_case_verb_list(snd_use_case_mgr_t *uc_mgr,
Rex Dieter fa5f53
+static __inline__ int snd_use_case_verb_list(snd_use_case_mgr_t *uc_mgr,
Rex Dieter fa5f53
 					 const char **list[])
Rex Dieter fa5f53
 {
Rex Dieter fa5f53
 	return snd_use_case_get_list(uc_mgr, "_verbs", list);
Rex Dieter fa5f53
-- 
Rex Dieter fa5f53
1.8.1.4
Rex Dieter fa5f53