Mercurial > pidgin
comparison libpurple/cipher.h @ 31922:5876584828e8
Please correct me if I'm wrong, but I don't think we gain anything
from declaring _PurpleBlah versions of enums if we do a typedef
at the same time. I don't think it's necessary.
Fixes #4475
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 22 Aug 2011 07:20:49 +0000 |
parents | 2b041e31b825 |
children |
comparison
equal
deleted
inserted
replaced
31921:4f2d99bcb195 | 31922:5876584828e8 |
---|---|
39 typedef struct _PurpleCipherContext PurpleCipherContext; /**< A context for a PurpleCipher */ | 39 typedef struct _PurpleCipherContext PurpleCipherContext; /**< A context for a PurpleCipher */ |
40 | 40 |
41 /** | 41 /** |
42 * Modes for batch encrypters | 42 * Modes for batch encrypters |
43 */ | 43 */ |
44 typedef enum _PurpleCipherBatchMode { | 44 typedef enum { |
45 PURPLE_CIPHER_BATCH_MODE_ECB, | 45 PURPLE_CIPHER_BATCH_MODE_ECB, |
46 PURPLE_CIPHER_BATCH_MODE_CBC | 46 PURPLE_CIPHER_BATCH_MODE_CBC |
47 } PurpleCipherBatchMode; | 47 } PurpleCipherBatchMode; |
48 | 48 |
49 /** | 49 /** |
50 * The operation flags for a cipher | 50 * The operation flags for a cipher |
51 */ | 51 */ |
52 typedef enum _PurpleCipherCaps { | 52 typedef enum { |
53 PURPLE_CIPHER_CAPS_SET_OPT = 1 << 1, /**< Set option flag */ | 53 PURPLE_CIPHER_CAPS_SET_OPT = 1 << 1, /**< Set option flag */ |
54 PURPLE_CIPHER_CAPS_GET_OPT = 1 << 2, /**< Get option flag */ | 54 PURPLE_CIPHER_CAPS_GET_OPT = 1 << 2, /**< Get option flag */ |
55 PURPLE_CIPHER_CAPS_INIT = 1 << 3, /**< Init flag */ | 55 PURPLE_CIPHER_CAPS_INIT = 1 << 3, /**< Init flag */ |
56 PURPLE_CIPHER_CAPS_RESET = 1 << 4, /**< Reset flag */ | 56 PURPLE_CIPHER_CAPS_RESET = 1 << 4, /**< Reset flag */ |
57 PURPLE_CIPHER_CAPS_UNINIT = 1 << 5, /**< Uninit flag */ | 57 PURPLE_CIPHER_CAPS_UNINIT = 1 << 5, /**< Uninit flag */ |