25 lines
471 B
C
25 lines
471 B
C
/* vxtss.h - VxWorks Thread-Specific Storage header */
|
|
|
|
#ifndef __VX_TSS_H__
|
|
#define __VX_TSS_H__
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <openssl/crypto.h>
|
|
|
|
typedef void (*tss_dtor_t)(void*);
|
|
|
|
void call_once(CRYPTO_ONCE *once_control, void (*init_routine)(void));
|
|
int tss_create(tss_t *key, tss_dtor_t destructor);
|
|
void *tss_get(tss_t key);
|
|
int tss_set(tss_t key, void *val);
|
|
void tss_delete(tss_t key);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __VX_TSS_H__ */
|