Add a LIST_HEADER macro

To save us from specifying the `next' and `prev' pointers all the time.

It's not perfect, just a tiny bit better.
This commit is contained in:
2014-07-18 19:51:15 +02:00
parent 353230b18b
commit 43d34d2473
3 changed files with 7 additions and 11 deletions

View File

@@ -52,9 +52,7 @@ static struct config_item g_config_table[] =
struct plugin_data
{
struct plugin_data *next; ///< The next link in a chain
struct plugin_data *prev; ///< The previous link in a chain
LIST_HEADER (plugin_data)
struct bot_context *ctx; ///< Parent context
pid_t pid; ///< PID of the plugin process