foxygit / ytmdl Log in
commits tags

/c/src/dirpicker.h · 386 B

raw
#ifndef YTMDL_DIRPICKER_H
#define YTMDL_DIRPICKER_H

#include <stddef.h>

/* Runs a modal, full-screen-centered directory browser starting at
 * start_path (or its nearest existing ancestor). On selection, writes the
 * chosen path into chosen (size cap) and returns 1; returns 0 if the user
 * cancelled. */
int dirpicker_run(const char *start_path, char *chosen, size_t cap);

#endif