#include <stdio.h>#include <stdlib.h>#include <errno.h>#include <string.h>#include <unistd.h>#include "../../mem/shm_mem.h"#include "purplepipe.h"#include "purple.h"

Go to the source code of this file.
Functions | |
| void | purple_free_cmd (struct purple_cmd *cmd) |
| static struct purple_cmd * | purple_new_cmd (enum purple_cmd_type type) |
| static int | purple_send_cmd (struct purple_cmd **cmd) |
| int | purple_send_message_cmd (str *from, str *to, str *body, str *id) |
| int | purple_send_publish_cmd (enum purple_publish_basic basic, PurpleStatusPrimitive primitive, str *from, str *id, str *note) |
| int | purple_send_subscribe_cmd (str *from, str *to, int expires) |
| static char * | shm_strdup (str *src) |
Variables | |
| int | pipefds [2] |
| void purple_free_cmd | ( | struct purple_cmd * | cmd | ) |
Definition at line 63 of file purplepipe.c.
References purple_message::body, purple_subscribe::from, purple_publish::from, purple_message::from, purple_publish::id, purple_message::id, LM_DBG, purple_cmd::message, purple_publish::note, purple_cmd::publish, PURPLE_MESSAGE_CMD, PURPLE_PUBLISH_CMD, PURPLE_SUBSCRIBE_CMD, shm_free, purple_cmd::subscribe, purple_subscribe::to, purple_message::to, and purple_cmd::type.
Referenced by pipe_reader(), and purple_send_cmd().
| static struct purple_cmd* purple_new_cmd | ( | enum purple_cmd_type | type | ) | [static, read] |
Definition at line 45 of file purplepipe.c.
References LM_DBG, LM_ERR, NULL, shm_malloc(), and purple_cmd::type.
Referenced by purple_send_message_cmd(), purple_send_publish_cmd(), and purple_send_subscribe_cmd().
| static int purple_send_cmd | ( | struct purple_cmd ** | cmd | ) | [static] |
Definition at line 95 of file purplepipe.c.
References LM_DBG, LM_ERR, pipefds, and purple_free_cmd().
Referenced by purple_send_message_cmd(), purple_send_publish_cmd(), and purple_send_subscribe_cmd().
Definition at line 107 of file purplepipe.c.
References purple_message::body, purple_message::from, purple_message::id, LM_DBG, purple_cmd::message, NULL, PURPLE_MESSAGE_CMD, purple_new_cmd(), purple_send_cmd(), shm_strdup(), and purple_message::to.
Referenced by func_send_message().
| int purple_send_publish_cmd | ( | enum purple_publish_basic | basic, | |
| PurpleStatusPrimitive | primitive, | |||
| str * | from, | |||
| str * | id, | |||
| str * | note | |||
| ) |
Definition at line 121 of file purplepipe.c.
References purple_publish::basic, purple_publish::from, purple_publish::id, _str::len, LM_DBG, purple_publish::note, NULL, purple_publish::primitive, purple_cmd::publish, purple_new_cmd(), PURPLE_PUBLISH_CMD, purple_send_cmd(), _str::s, and shm_strdup().
Referenced by func_handle_publish().
Definition at line 136 of file purplepipe.c.
References purple_subscribe::expires, purple_subscribe::from, LM_DBG, NULL, purple_new_cmd(), purple_send_cmd(), PURPLE_SUBSCRIBE_CMD, shm_strdup(), purple_cmd::subscribe, and purple_subscribe::to.
Referenced by func_handle_subscribe().
| static char* shm_strdup | ( | str * | src | ) | [static] |
| int pipefds[2] |
1.5.6