NJB_Get_TmpDir3
Get and set the temporary directory location for file transfers
Usage
#include <libnjb.h>
extern int njb_error
const char *NJB_Get_TmpDir (njb_t *njb)
int NJB_Set_TmpDir (njb_t *njb, const char *dir)
Library
libnjb
Overview
NJB_Set_TmpDir sets the temporary location for file downloads made by the NJB_Get_Track(3) and NJB_Get_Datafile(3) functions. NJB_Get_TmpDir returns the current setting.
The temporary directory is initially set to /tmp when NJB_Open(3) is called.
Return values
NJB_Set_TmpDir returns 0 on success. If an error occurred, it returns -1 and sets njb_error.
- EO_NOMEM
-
There was not enough memory available to save the new directory location.
Releases
Unchanged in 2 releases since Debian 3.1 (Sarge).