# getevents

## Name

getevents --

## Synopsis

    enum        LJGetEventsMode;
    LJGetEventsSingle* lj_getevents_single_new  (LJUser *user,
                                                 const char *usejournal,
                                                 int itemid);
    void        lj_getevents_single_free        (LJGetEventsSingle *getevents,
                                                 gboolean includeevent);
    LJGetEvents* lj_getevents_new_recent        (LJUser *user,
                                                 const char *usejournal,
                                                 gboolean summary,
                                                 int count);
    LJGetEventsSync* lj_getevents_sync_new      (LJUser *user,
                                                 const char *usejournal,
                                                 const char *lastsync);
    void        lj_getevents_sync_free          (LJGetEventsSync *getevents,
                                                 gboolean includeentries);
    LJGetEventsRecent* lj_getevents_recent_new  (LJUser *user,
                                                 const char *usejournal,
                                                 int howmany,
                                                 const char *beforedate,
                                                 gboolean summary,
                                                 int truncate);
    void        lj_getevents_recent_free        (LJGetEventsRecent *getevents,
                                                 gboolean includeentries);

## Description

## Details

### enum LJGetEventsMode

    typedef enum {
    	LJ_GETEVENTS_MODE_SINGLE,
    	LJ_GETEVENTS_MODE_RECENT,
    } LJGetEventsMode;

### lj_getevents_single_new ()

    LJGetEventsSingle* lj_getevents_single_new  (LJUser *user,
                                                 const char *usejournal,
                                                 int itemid);

user : |
usejournal : |
itemid : |
Returns : |

### lj_getevents_single_free ()

    void        lj_getevents_single_free        (LJGetEventsSingle *getevents,
                                                 gboolean includeevent);

getevents : |
includeevent : |

### lj_getevents_new_recent ()

    LJGetEvents* lj_getevents_new_recent        (LJUser *user,
                                                 const char *usejournal,
                                                 gboolean summary,
                                                 int count);

user : |
usejournal : |
summary : |
count : |
Returns : |

### lj_getevents_sync_new ()

    LJGetEventsSync* lj_getevents_sync_new      (LJUser *user,
                                                 const char *usejournal,
                                                 const char *lastsync);

user : |
usejournal : |
lastsync : |
Returns : |

### lj_getevents_sync_free ()

    void        lj_getevents_sync_free          (LJGetEventsSync *getevents,
                                                 gboolean includeentries);

getevents : |
includeentries : |

### lj_getevents_recent_new ()

    LJGetEventsRecent* lj_getevents_recent_new  (LJUser *user,
                                                 const char *usejournal,
                                                 int howmany,
                                                 const char *beforedate,
                                                 gboolean summary,
                                                 int truncate);

user : |
usejournal : |
howmany : |
beforedate : |
summary : |
truncate : |
Returns : |

### lj_getevents_recent_free ()

    void        lj_getevents_recent_free        (LJGetEventsRecent *getevents,
                                                 gboolean includeentries);

getevents : |
includeentries : |