Mercurial > hg > freeDiameter
comparison extensions/dbg_interactive/posix.i @ 875:47735fe496bc
Use unamed structures to please SWIG on OSX
author | Sebastien Decugis <sdecugis@freediameter.net> |
---|---|
date | Thu, 01 Nov 2012 09:08:36 +0100 |
parents | d59decafe9c0 |
children | 2b14ccdd0b92 |
comparison
equal
deleted
inserted
replaced
874:886d9642f2a0 | 875:47735fe496bc |
---|---|
36 /* Do not include this directly, use dbg_interactive.i instead */ | 36 /* Do not include this directly, use dbg_interactive.i instead */ |
37 | 37 |
38 /****** POSIX wrappers around useful functions for fD *********/ | 38 /****** POSIX wrappers around useful functions for fD *********/ |
39 | 39 |
40 /**** MUTEX ****/ | 40 /**** MUTEX ****/ |
41 typedef struct pthread_mutex_swig { | 41 typedef struct { |
42 } pthread_mutex_t; | 42 } pthread_mutex_t; |
43 | 43 |
44 %extend pthread_mutex_t { | 44 %extend pthread_mutex_t { |
45 pthread_mutex_t() { | 45 pthread_mutex_t() { |
46 int ret = 0; | 46 int ret = 0; |
80 } | 80 } |
81 } | 81 } |
82 } | 82 } |
83 | 83 |
84 /**** CONDVAR ****/ | 84 /**** CONDVAR ****/ |
85 typedef struct pthread_cond_swig { | 85 typedef struct { |
86 } pthread_cond_t; | 86 } pthread_cond_t; |
87 | 87 |
88 %extend pthread_cond_t { | 88 %extend pthread_cond_t { |
89 pthread_cond_t() { | 89 pthread_cond_t() { |
90 int ret = 0; | 90 int ret = 0; |
142 } | 142 } |
143 } | 143 } |
144 } | 144 } |
145 | 145 |
146 /**** RWLOCK ****/ | 146 /**** RWLOCK ****/ |
147 typedef struct pthread_rwlock_swig { | 147 typedef struct { |
148 } pthread_rwlock_t; | 148 } pthread_rwlock_t; |
149 | 149 |
150 %extend pthread_rwlock_t { | 150 %extend pthread_rwlock_t { |
151 pthread_rwlock_t() { | 151 pthread_rwlock_t() { |
152 int ret = 0; | 152 int ret = 0; |