all: move headers to include folder
Signed-off-by: Mahyar Koshkouei <mk@deltabeard.com>
This commit is contained in:
55
include/main.h
Normal file
55
include/main.h
Normal file
@@ -0,0 +1,55 @@
|
||||
/**
|
||||
* ctrmus - 3DS Music Player
|
||||
* Copyright (C) 2016 Mahyar Koshkouei
|
||||
*
|
||||
* This program comes with ABSOLUTELY NO WARRANTY and is free software. You are
|
||||
* welcome to redistribute it under certain conditions; for details see the
|
||||
* LICENSE file.
|
||||
*/
|
||||
|
||||
#include <3ds.h>
|
||||
|
||||
#ifndef ctrmus_main_h
|
||||
#define ctrmus_main_h
|
||||
|
||||
/* Default folder */
|
||||
#define DEFAULT_DIR "sdmc:/"
|
||||
|
||||
/* Maximum number of lines that can be displayed */
|
||||
#define MAX_LIST 28
|
||||
|
||||
struct watchdogInfo
|
||||
{
|
||||
PrintConsole* screen;
|
||||
struct errInfo_t* errInfo;
|
||||
};
|
||||
|
||||
struct dirList_t
|
||||
{
|
||||
char** files;
|
||||
int fileNum;
|
||||
|
||||
char** directories;
|
||||
int dirNum;
|
||||
|
||||
char* currentDir;
|
||||
};
|
||||
|
||||
/**
|
||||
* Allows the playback thread to return any error messages that it may
|
||||
* encounter.
|
||||
*
|
||||
* \param infoIn Struct containing addresses of the event, the error code,
|
||||
* and an optional error string.
|
||||
*/
|
||||
void playbackWatchdog(void* infoIn);
|
||||
|
||||
/**
|
||||
* Get number of files in current working folder
|
||||
*
|
||||
* \return Number of files in current working folder, -1 on failure with
|
||||
* errno set.
|
||||
*/
|
||||
int getNumberFiles(void);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user