man NJB_Get_TmpDir (Fonctions bibliothèques) - Get and set the temporary directory location for file transfers
NAME
NJB_Get_TmpDir, NJB_Set_TmpDir - Get and set the temporary directory location for file transfers
LIBRARY
libnjb
SYNOPSIS
#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)
DESCRIPTION
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.
SEE ALSO
NJB_Get_Datafile(3), NJB_Get_Track(3), NJB_Open(3)