eventlog

## eventlog eventlog |

## Synopsis

                        lcm_eventlog_t;
                        lcm_eventlog_event_t;
    lcm_eventlog_t *    lcm_eventlog_create                 (const char *path,
                                                             const char *mode);
    lcm_eventlog_event_t * lcm_eventlog_read_next_event     (lcm_eventlog_t *l);
    void                lcm_eventlog_free_event             (lcm_eventlog_event_t *le);
    int                 lcm_eventlog_seek_to_timestamp      (lcm_eventlog_t *l,
                                                             int64_t ts);
    int                 lcm_eventlog_write_event            (lcm_eventlog_t *l,
                                                             lcm_eventlog_event_t *le);
    void                lcm_eventlog_destroy                (lcm_eventlog_t *l);

## Description

## Details

### lcm_eventlog_t

    typedef struct {
        FILE *f;
        int64_t eventcount;
    } lcm_eventlog_t;

### lcm_eventlog_event_t

    typedef struct {
        int64_t eventnum, timestamp;
        int32_t channellen, datalen;

        char     *channel;
        void     *data;
    } lcm_eventlog_event_t;

### lcm_eventlog_create ()

    lcm_eventlog_t *    lcm_eventlog_create                 (const char *path,
                                                             const char *mode);

`path` : |
`mode` : |
Returns : |

### lcm_eventlog_read_next_event ()

    lcm_eventlog_event_t * lcm_eventlog_read_next_event     (lcm_eventlog_t *l);

`l` : |
Returns : |

### lcm_eventlog_free_event ()

    void                lcm_eventlog_free_event             (lcm_eventlog_event_t *le);

`le` : |

### lcm_eventlog_seek_to_timestamp ()

    int                 lcm_eventlog_seek_to_timestamp      (lcm_eventlog_t *l,
                                                             int64_t ts);

`l` : |
`ts` : |
Returns : |

### lcm_eventlog_write_event ()

    int                 lcm_eventlog_write_event            (lcm_eventlog_t *l,
                                                             lcm_eventlog_event_t *le);

`l` : |
`le` : |
Returns : |

### lcm_eventlog_destroy ()

    void                lcm_eventlog_destroy                (lcm_eventlog_t *l);

`l` : |