[Xenomai-git] Philippe Gerum : include/trank: add missing C bindings
Module: xenomai-3 Branch: wip/dovetail Commit: 7099d6464aead376db2bceef0ffae17c591a5d5d URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=7099d6464aead376db2bceef0ffae17c591a5d5d Author: Philippe Gerum Date: Thu Jun 2 16:17:54 2016 +0200 include/trank: add missing C bindings --- include/trank/posix/pthread.h |8 include/trank/rtdk.h |8 include/trank/trank.h |8 3 files changed, 20 insertions(+), 4 deletions(-) diff --git a/include/trank/posix/pthread.h b/include/trank/posix/pthread.h index 25e581d..a7364c5 100644 --- a/include/trank/posix/pthread.h +++ b/include/trank/posix/pthread.h @@ -21,6 +21,10 @@ #ifndef _XENOMAI_TRANK_POSIX_PTHREAD_H #define _XENOMAI_TRANK_POSIX_PTHREAD_H +#ifdef __cplusplus +extern "C" { +#endif + /** * Set the mode of the current thread (compatibility service) * @@ -76,10 +80,6 @@ static inline int pthread_set_name_np(pthread_t thread, return pthread_setname_np(thread, name); } -#ifdef __cplusplus -extern "C" { -#endif - int pthread_make_periodic_np(pthread_t thread, struct timespec *starttp, struct timespec *periodtp); diff --git a/include/trank/rtdk.h b/include/trank/rtdk.h index 6030785..e8bb6d1 100644 --- a/include/trank/rtdk.h +++ b/include/trank/rtdk.h @@ -20,6 +20,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + static inline void rt_print_auto_init(int enable) { /* stdio support is automatically enabled by libcobalt. */ @@ -27,4 +31,8 @@ static inline void rt_print_auto_init(int enable) static inline void rt_print_cleanup(void) { } +#ifdef __cplusplus +} +#endif + #endif /* _XENOMAI_TRANK_RTDK_H */ diff --git a/include/trank/trank.h b/include/trank/trank.h index 2477d45..cc68837 100644 --- a/include/trank/trank.h +++ b/include/trank/trank.h @@ -22,8 +22,16 @@ #ifdef __XENO_COMPAT__ +#ifdef __cplusplus +extern "C" { +#endif + void warning(const char *fmt, ...); +#ifdef __cplusplus +} +#endif + #define trank_warning(__fmt, __args...)\ warning("%s: " __fmt, __func__, ##__args) ___ Xenomai-git mailing list Xenomai-git@xenomai.org https://xenomai.org/mailman/listinfo/xenomai-git
[Xenomai-git] Philippe Gerum : include/trank: add missing C bindings
Module: xenomai-3 Branch: wip/gpio Commit: 8f157264893087e27ca4a51f29894897645a319c URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=8f157264893087e27ca4a51f29894897645a319c Author: Philippe Gerum Date: Thu Jun 2 16:17:54 2016 +0200 include/trank: add missing C bindings --- include/trank/posix/pthread.h |8 include/trank/rtdk.h |8 include/trank/trank.h |8 3 files changed, 20 insertions(+), 4 deletions(-) diff --git a/include/trank/posix/pthread.h b/include/trank/posix/pthread.h index 25e581d..a7364c5 100644 --- a/include/trank/posix/pthread.h +++ b/include/trank/posix/pthread.h @@ -21,6 +21,10 @@ #ifndef _XENOMAI_TRANK_POSIX_PTHREAD_H #define _XENOMAI_TRANK_POSIX_PTHREAD_H +#ifdef __cplusplus +extern "C" { +#endif + /** * Set the mode of the current thread (compatibility service) * @@ -76,10 +80,6 @@ static inline int pthread_set_name_np(pthread_t thread, return pthread_setname_np(thread, name); } -#ifdef __cplusplus -extern "C" { -#endif - int pthread_make_periodic_np(pthread_t thread, struct timespec *starttp, struct timespec *periodtp); diff --git a/include/trank/rtdk.h b/include/trank/rtdk.h index 6030785..e8bb6d1 100644 --- a/include/trank/rtdk.h +++ b/include/trank/rtdk.h @@ -20,6 +20,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + static inline void rt_print_auto_init(int enable) { /* stdio support is automatically enabled by libcobalt. */ @@ -27,4 +31,8 @@ static inline void rt_print_auto_init(int enable) static inline void rt_print_cleanup(void) { } +#ifdef __cplusplus +} +#endif + #endif /* _XENOMAI_TRANK_RTDK_H */ diff --git a/include/trank/trank.h b/include/trank/trank.h index 2477d45..cc68837 100644 --- a/include/trank/trank.h +++ b/include/trank/trank.h @@ -22,8 +22,16 @@ #ifdef __XENO_COMPAT__ +#ifdef __cplusplus +extern "C" { +#endif + void warning(const char *fmt, ...); +#ifdef __cplusplus +} +#endif + #define trank_warning(__fmt, __args...)\ warning("%s: " __fmt, __func__, ##__args) ___ Xenomai-git mailing list Xenomai-git@xenomai.org https://xenomai.org/mailman/listinfo/xenomai-git
[Xenomai-git] Philippe Gerum : include/trank: add missing C bindings
Module: xenomai-3 Branch: next Commit: 7099d6464aead376db2bceef0ffae17c591a5d5d URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=7099d6464aead376db2bceef0ffae17c591a5d5d Author: Philippe Gerum Date: Thu Jun 2 16:17:54 2016 +0200 include/trank: add missing C bindings --- include/trank/posix/pthread.h |8 include/trank/rtdk.h |8 include/trank/trank.h |8 3 files changed, 20 insertions(+), 4 deletions(-) diff --git a/include/trank/posix/pthread.h b/include/trank/posix/pthread.h index 25e581d..a7364c5 100644 --- a/include/trank/posix/pthread.h +++ b/include/trank/posix/pthread.h @@ -21,6 +21,10 @@ #ifndef _XENOMAI_TRANK_POSIX_PTHREAD_H #define _XENOMAI_TRANK_POSIX_PTHREAD_H +#ifdef __cplusplus +extern "C" { +#endif + /** * Set the mode of the current thread (compatibility service) * @@ -76,10 +80,6 @@ static inline int pthread_set_name_np(pthread_t thread, return pthread_setname_np(thread, name); } -#ifdef __cplusplus -extern "C" { -#endif - int pthread_make_periodic_np(pthread_t thread, struct timespec *starttp, struct timespec *periodtp); diff --git a/include/trank/rtdk.h b/include/trank/rtdk.h index 6030785..e8bb6d1 100644 --- a/include/trank/rtdk.h +++ b/include/trank/rtdk.h @@ -20,6 +20,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + static inline void rt_print_auto_init(int enable) { /* stdio support is automatically enabled by libcobalt. */ @@ -27,4 +31,8 @@ static inline void rt_print_auto_init(int enable) static inline void rt_print_cleanup(void) { } +#ifdef __cplusplus +} +#endif + #endif /* _XENOMAI_TRANK_RTDK_H */ diff --git a/include/trank/trank.h b/include/trank/trank.h index 2477d45..cc68837 100644 --- a/include/trank/trank.h +++ b/include/trank/trank.h @@ -22,8 +22,16 @@ #ifdef __XENO_COMPAT__ +#ifdef __cplusplus +extern "C" { +#endif + void warning(const char *fmt, ...); +#ifdef __cplusplus +} +#endif + #define trank_warning(__fmt, __args...)\ warning("%s: " __fmt, __func__, ##__args) ___ Xenomai-git mailing list Xenomai-git@xenomai.org https://xenomai.org/mailman/listinfo/xenomai-git
[Xenomai-git] Philippe Gerum : include/trank: add missing C bindings
Module: xenomai-3 Branch: stable-3.0.x Commit: 8f157264893087e27ca4a51f29894897645a319c URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=8f157264893087e27ca4a51f29894897645a319c Author: Philippe Gerum Date: Thu Jun 2 16:17:54 2016 +0200 include/trank: add missing C bindings --- include/trank/posix/pthread.h |8 include/trank/rtdk.h |8 include/trank/trank.h |8 3 files changed, 20 insertions(+), 4 deletions(-) diff --git a/include/trank/posix/pthread.h b/include/trank/posix/pthread.h index 25e581d..a7364c5 100644 --- a/include/trank/posix/pthread.h +++ b/include/trank/posix/pthread.h @@ -21,6 +21,10 @@ #ifndef _XENOMAI_TRANK_POSIX_PTHREAD_H #define _XENOMAI_TRANK_POSIX_PTHREAD_H +#ifdef __cplusplus +extern "C" { +#endif + /** * Set the mode of the current thread (compatibility service) * @@ -76,10 +80,6 @@ static inline int pthread_set_name_np(pthread_t thread, return pthread_setname_np(thread, name); } -#ifdef __cplusplus -extern "C" { -#endif - int pthread_make_periodic_np(pthread_t thread, struct timespec *starttp, struct timespec *periodtp); diff --git a/include/trank/rtdk.h b/include/trank/rtdk.h index 6030785..e8bb6d1 100644 --- a/include/trank/rtdk.h +++ b/include/trank/rtdk.h @@ -20,6 +20,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + static inline void rt_print_auto_init(int enable) { /* stdio support is automatically enabled by libcobalt. */ @@ -27,4 +31,8 @@ static inline void rt_print_auto_init(int enable) static inline void rt_print_cleanup(void) { } +#ifdef __cplusplus +} +#endif + #endif /* _XENOMAI_TRANK_RTDK_H */ diff --git a/include/trank/trank.h b/include/trank/trank.h index 2477d45..cc68837 100644 --- a/include/trank/trank.h +++ b/include/trank/trank.h @@ -22,8 +22,16 @@ #ifdef __XENO_COMPAT__ +#ifdef __cplusplus +extern "C" { +#endif + void warning(const char *fmt, ...); +#ifdef __cplusplus +} +#endif + #define trank_warning(__fmt, __args...)\ warning("%s: " __fmt, __func__, ##__args) ___ Xenomai-git mailing list Xenomai-git@xenomai.org https://xenomai.org/mailman/listinfo/xenomai-git