diff options
author | Simon Josefsson <simon@josefsson.org> | 2006-08-13 15:07:45 +0000 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2006-08-13 15:07:45 +0000 |
commit | de4e8594b0de963fe89594e69c7307c430801dad (patch) | |
tree | 47443152134b366551cbea871cc4139f7ee2f319 /lib | |
parent | aef6967f12deabc7782db54f48ee21246b17885b (diff) | |
download | gnutls-de4e8594b0de963fe89594e69c7307c430801dad.tar.gz |
Move GNUTLS_POINTER_TO_INT here.
Add GNUTLS_INT_TO_POINTER.
Based on glib macros, and suggestions from Andreas Metzler <ametzler@downhill.at.eu.org>.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gnutls_int.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/gnutls_int.h b/lib/gnutls_int.h index 2060a52cde..730bdfd291 100644 --- a/lib/gnutls_int.h +++ b/lib/gnutls_int.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation + * Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation * * Author: Nikos Mavroyanopoulos * @@ -106,6 +106,9 @@ #define HASH2MAC(x) ((gnutls_mac_algorithm_t)x) +#define GNUTLS_POINTER_TO_INT(_) ((int) GNUTLS_POINTER_TO_INT_CAST (_)) +#define GNUTLS_INT_TO_POINTER(_) ((void*) GNUTLS_POINTER_TO_INT_CAST (_)) + typedef unsigned char opaque; typedef struct { |