/** THIS IS AN AUTOMATICALLY GENERATED FILE.  DO NOT MODIFY
 * BY HAND!!
 *
 * Generated by LCM
 **/

#include <stdint.h>
#include <stdlib.h>
#include <lcm/lcm_coretypes.h>
#include <lcm/lcm.h>

#ifndef _botlcm_image_metadata_t_h
#define _botlcm_image_metadata_t_h

#ifdef __cplusplus
extern "C" {
#endif

typedef struct _botlcm_image_metadata_t botlcm_image_metadata_t;
struct _botlcm_image_metadata_t
{
    char*      key;
    int32_t    n;
    uint8_t    *value;
};
 
botlcm_image_metadata_t   *botlcm_image_metadata_t_copy(const botlcm_image_metadata_t *p);
void botlcm_image_metadata_t_destroy(botlcm_image_metadata_t *p);

typedef struct _botlcm_image_metadata_t_subscription_t botlcm_image_metadata_t_subscription_t;
typedef void (*botlcm_image_metadata_t_handler_t)(const lcm_recv_buf_t *rbuf, 
             const char *channel, const botlcm_image_metadata_t *msg, void *user);

int botlcm_image_metadata_t_publish(lcm_t *lcm, const char *channel, const botlcm_image_metadata_t *p);
botlcm_image_metadata_t_subscription_t* botlcm_image_metadata_t_subscribe (lcm_t *lcm, const char *channel, botlcm_image_metadata_t_handler_t f, void *userdata);
int botlcm_image_metadata_t_unsubscribe(lcm_t *lcm, botlcm_image_metadata_t_subscription_t* hid);

int  botlcm_image_metadata_t_encode(void *buf, int offset, int maxlen, const botlcm_image_metadata_t *p);
int  botlcm_image_metadata_t_decode(const void *buf, int offset, int maxlen, botlcm_image_metadata_t *p);
int  botlcm_image_metadata_t_decode_cleanup(botlcm_image_metadata_t *p);
int  botlcm_image_metadata_t_encoded_size(const botlcm_image_metadata_t *p);

// LCM support functions. Users should not call these
int64_t __botlcm_image_metadata_t_get_hash(void);
int64_t __botlcm_image_metadata_t_hash_recursive(const __lcm_hash_ptr *p);
int     __botlcm_image_metadata_t_encode_array(void *buf, int offset, int maxlen, const botlcm_image_metadata_t *p, int elements);
int     __botlcm_image_metadata_t_decode_array(const void *buf, int offset, int maxlen, botlcm_image_metadata_t *p, int elements);
int     __botlcm_image_metadata_t_decode_array_cleanup(botlcm_image_metadata_t *p, int elements);
int     __botlcm_image_metadata_t_encoded_array_size(const botlcm_image_metadata_t *p, int elements);
int     __botlcm_image_metadata_t_clone_array(const botlcm_image_metadata_t *p, botlcm_image_metadata_t *q, int elements);

#ifdef __cplusplus
}
#endif

#endif
