Added photos to gallery and fixed memory leaks

This commit is contained in:
2021-04-10 13:37:31 +05:00
parent a50a85046f
commit 27e0036e9d
8 changed files with 38 additions and 2 deletions

View File

@ -22,7 +22,9 @@ typedef struct album_s
gallery_t *get_album_list();
gallery_t *new_album_item(char *title);
void free_albums_list(gallery_t *albums_list);
img_t new_img_item(char *path);
void free_img_item(img_t img);
int get_album_imgs(img_t **images_arr, int *size, char *title);
char *gen_gallery_html();