#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "include/agent_file_data.h"
#include <b64/cencode.h>
Go to the source code of this file.
Functions | |
agent_file_data_p | agent_file_data_New (void) |
agent_file_data_p | agent_file_data_NewWithData (const char *name, const char *data) |
agent_file_data_p | agent_file_data_Copy (agent_file_data_p src) |
agent_file_data_p | agent_file_data_InitializeFromFilename (const char *filename) |
agent_file_data_p | agent_file_data_Encode (const char *name, void *data, int size) |
int | agent_file_data_Destroy (agent_file_data_p agent_file_data) |
int | agent_file_data_CmpName (const void *key, void *element) |
int agent_file_data_CmpName | ( | const void * | key, | |
void * | element | |||
) |
Definition at line 102 of file agent_file_data.c.
References agent_file_data_s::name.
Referenced by MC_AgentRetrieveFile().
agent_file_data_p agent_file_data_Copy | ( | agent_file_data_p | src | ) |
Definition at line 26 of file agent_file_data.c.
References agent_file_data_s::data, agent_file_data_s::name, and strdup.
Referenced by agent_task_Copy().
int agent_file_data_Destroy | ( | agent_file_data_p | agent_file_data | ) |
Definition at line 89 of file agent_file_data.c.
References agent_file_data_s::data, and agent_file_data_s::name.
Referenced by agent_task_Destroy(), and agent_xml_compose__task().
agent_file_data_p agent_file_data_Encode | ( | const char * | name, | |
void * | data, | |||
int | size | |||
) |
Definition at line 84 of file agent_file_data.c.
agent_file_data_p agent_file_data_InitializeFromFilename | ( | const char * | filename | ) |
Definition at line 44 of file agent_file_data.c.
References base64_encode_block(), base64_encode_blockend(), base64_init_encodestate(), agent_file_data_s::data, agent_file_data_s::name, and strdup.
Referenced by MC_AgentAttachFile().
agent_file_data_p agent_file_data_New | ( | void | ) |
Definition at line 8 of file agent_file_data.c.
References agent_file_data_s::data, and agent_file_data_s::name.
Referenced by agent_file_data_NewWithData().
agent_file_data_p agent_file_data_NewWithData | ( | const char * | name, | |
const char * | data | |||
) |
Definition at line 17 of file agent_file_data.c.
References agent_file_data_New(), agent_file_data_s::data, agent_file_data_s::name, and strdup.
Referenced by agent_xml_parse__file().