https://bitbucket.org/daniel_fort/magic-lantern
Raw File
Tip revision: 200b21a2186d8758eb827b3299cc4473f07638c3 authored by Daniel Fort on 04 January 2017, 20:57:22 UTC
Closed branch dm-spy-experiments_EOSM_stubs
Tip revision: 200b21a
fileprefix.h
/** 
 * Routines for custom file prefix (e.g. IMG_1234.CR2 -> ABCD1234.CR2)
 **/

#ifndef _fileprefix_h_
#define _fileprefix_h_

/* 4-character null-terminated string */
char* get_file_prefix();

/* only one module (task, whatever) can set a custom prefix; all other requests will be denied */
/* returns a "key" with which you can restore the file prefix (so it won't get restored by mistake) */
int file_prefix_set(char* new_prefix);

int file_prefix_reset(int key);

#endif
back to top