https://bitbucket.org/daniel_fort/magic-lantern
Raw File
Tip revision: be94de36fe2fd01eb783084d9c97c17b080c70f4 authored by alex@thinkpad on 10 February 2019, 17:27:08 UTC
5DS: moved experimental minimal.c into platform/5DS.111 and reverted changes to main minimal.c
Tip revision: be94de3
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