Revision 328d6253c5f255d88b969913daebef984062dfa5 authored by alex@thinkpad on 02 February 2018, 13:44:08 UTC, committed by alex@thinkpad on 02 February 2018, 13:44:08 UTC
(to make sure all events are printed in all modes)
1 parent 03c58c5
Raw File
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