--- trunk/src/GPGOE.h 2006/06/04 10:12:47 19 +++ trunk/src/GPGOE.h 2007/08/18 10:55:14 23 @@ -1,5 +1,5 @@ /* GPGOE.h - GnuPG for Outlook Express - * Copyright (C) 2001, 2002, 2003, 2006 Timo Schulz + * Copyright (C) 2001, 2002, 2003, 2006, 2007 Timo Schulz * * This file is part of GPGOE. * @@ -12,10 +12,6 @@ * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with GPGOE; if not, write to the Free Software Foundation, - * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #ifndef GPGOE_H @@ -28,13 +24,13 @@ #define ATTR_SEC #endif +/* How many items we can store in the dictionary */ #define HASH_BUCKETS 3 /* gettext support. */ const char *gettext (const char *msgid); #define _(X) gettext ((X)) - #include /* safe wrapper around free. */ #define free_if_alloc(ptr) \ @@ -54,6 +50,10 @@ #define wipememory(_ptr,_len) wipememory2 (_ptr,0,_len) +#ifndef DIM +#define DIM(v) (sizeof (v) / sizeof ((v)[0])) +#endif + /* Dialog IDs for the various operations. */ #define ID_OE_SELECTALL 40125 #define ID_OE_COPY 40484 @@ -77,8 +77,8 @@ /* Context for the recipient list. */ struct recip_list_s { struct recip_list_s *next; - gpgme_key_t key; - char *addr; + gpgme_key_t key; /* The actual key to use */ + char *addr; /* The email address. */ }; typedef struct recip_list_s *recip_list_t; @@ -106,7 +106,7 @@ }; typedef struct viewer_ctx_s *viewer_ctx_t; - +/* Signature verify context. */ struct verify_ctx_s { gpgme_signature_t sig; gpgme_data_t text; @@ -114,10 +114,10 @@ typedef struct verify_ctx_s *verify_ctx_t; /*-- GPGOE.c --*/ -/*EXPORT*/ int gpgoe_initialize (void); -/*EXPORT*/ int gpgoe_remove (void); -/*EXPORT*/ void gpgoe_set_active_modes (int mode); -/*EXPORT*/ int gpgoe_get_active_modes (void); +int gpgoe_initialize (void); +int gpgoe_remove (void); +void gpgoe_set_active_modes (int mode); +int gpgoe_get_active_modes (void); /*-- OEProc.c --*/ extern plugin_ctx_t oe_plug;