https://bitbucket.org/hudson/magic-lantern
Revision f4fb08288ce243d818bb7cbec0cc866efa5797a8 authored by alex@thinkpad on 29 October 2017, 19:04:27 UTC, committed by alex@thinkpad on 29 October 2017, 19:04:27 UTC
(they are interchangeable; older systems may require gvfs-mount, newer systems will print warnings)
1 parent 94ac658
Raw File
Tip revision: f4fb08288ce243d818bb7cbec0cc866efa5797a8 authored by alex@thinkpad on 29 October 2017, 19:04:27 UTC
Makefile: use "gio mount" rather than "gvfs-mount"
Tip revision: f4fb082
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