| 68 PurpleProxyInfo *proxy_info; /**< Proxy information. This will be set */ |
68 PurpleProxyInfo *proxy_info; /**< Proxy information. This will be set */ |
| 69 /* to NULL when the account inherits */ |
69 /* to NULL when the account inherits */ |
| 70 /* proxy settings from global prefs. */ |
70 /* proxy settings from global prefs. */ |
| 71 |
71 |
| 72 /* |
72 /* |
| 73 * TODO: Supplementing the next two linked lists with hash tables |
73 * TODO: Instead of linked lists for permit and deny, use a data |
| 74 * should help performance a lot when these lists are long. This |
74 * structure that allows fast lookups AND decent performance when |
| 75 * matters quite a bit for protocols like MSN, where all your |
75 * iterating through all items. Fast lookups should help performance |
| 76 * buddies are added to your permit list. Currently we have to |
76 * for protocols like MSN, where all your buddies exist in your permit |
| 77 * iterate through the entire list if we want to check if someone |
77 * list therefore the permit list is large. Possibly GTree or |
| 78 * is permitted or denied. We should do this for 3.0.0. |
78 * GHashTable. |
| 79 * Or maybe use a GTree. |
|
| 80 */ |
79 */ |
| 81 GSList *permit; /**< Permit list. */ |
80 GSList *permit; /**< Permit list. */ |
| 82 GSList *deny; /**< Deny list. */ |
81 GSList *deny; /**< Deny list. */ |
| 83 PurpleAccountPrivacyType privacy_type; /**< The permit/deny setting. */ |
82 PurpleAccountPrivacyType privacy_type; /**< The permit/deny setting. */ |
| 84 |
83 |