![]() |
kinetic-c
v0.12.0
Seagate Kinetic Protocol Client Library for C
|
#include "kinetic_allocator.h"#include "kinetic_logger.h"#include "kinetic_memory.h"#include "kinetic_resourcewaiter.h"#include "kinetic_resourcewaiter_types.h"#include <stdlib.h>#include <pthread.h>Go to the source code of this file.
Functions | |
| KineticSession * | KineticAllocator_NewSession (struct bus *b, KineticSessionConfig *config) |
| void | KineticAllocator_FreeSession (KineticSession *session) |
| KineticResponse * | KineticAllocator_NewKineticResponse (size_t const valueLength) |
| void | KineticAllocator_FreeKineticResponse (KineticResponse *response) |
| KineticOperation * | KineticAllocator_NewOperation (KineticSession *const session) |
| void | KineticAllocator_FreeOperation (KineticOperation *operation) |
| void | KineticAllocator_FreeP2PProtobuf (Com__Seagate__Kinetic__Proto__Command__P2POperation *proto_p2pOp) |
| KineticSession* KineticAllocator_NewSession | ( | struct bus * | b, |
| KineticSessionConfig * | config | ||
| ) |
Definition at line 30 of file kinetic_allocator.c.
References ByteArray::data, KineticSessionConfig::hmacKey, KineticSessionConfig::host, KINETIC_SOCKET_INVALID, KINETIC_STATUS_SUCCESS, KineticCalloc(), KineticResourceWaiter_Init(), ByteArray::len, LOG0, and KineticSessionConfig::timeoutSeconds.
| void KineticAllocator_FreeSession | ( | KineticSession * | session | ) |
Definition at line 54 of file kinetic_allocator.c.
References KineticFree(), and KineticResourceWaiter_Destroy().
| KineticResponse* KineticAllocator_NewKineticResponse | ( | size_t const | valueLength | ) |
Definition at line 62 of file kinetic_allocator.c.
References KineticCalloc(), and LOG0.
| void KineticAllocator_FreeKineticResponse | ( | KineticResponse * | response | ) |
Definition at line 72 of file kinetic_allocator.c.
References KineticResponse::command, KINETIC_ASSERT, KineticFree(), and KineticResponse::proto.
| KineticOperation* KineticAllocator_NewOperation | ( | KineticSession *const | session | ) |
Definition at line 85 of file kinetic_allocator.c.
References KINETIC_ASSERT, KineticCalloc(), KineticFree(), KineticRequest_Init(), LOGF0, and LOGF3.
| void KineticAllocator_FreeOperation | ( | KineticOperation * | operation | ) |
Definition at line 108 of file kinetic_allocator.c.
References KINETIC_ASSERT, KineticAllocator_FreeKineticResponse(), KineticFree(), and LOGF3.
| void KineticAllocator_FreeP2PProtobuf | ( | Com__Seagate__Kinetic__Proto__Command__P2POperation * | proto_p2pOp | ) |
Definition at line 123 of file kinetic_allocator.c.
References KineticAllocator_FreeP2PProtobuf().
1.8.8