mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-21 15:57:31 +09:00
Dactyloidae Milsko Widget initial commit
This commit is contained in:
parent
2e7355c0ef
commit
91b45c0d14
410 changed files with 204246 additions and 0 deletions
22
widget/milsko/milskosrc/include/Mw/Abstract/CharSet.h
Normal file
22
widget/milsko/milskosrc/include/Mw/Abstract/CharSet.h
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
/*!
|
||||
* @file Mw/Abstract/CharSet.h
|
||||
* @brief CharSet
|
||||
*/
|
||||
#ifndef __MW_ABSTRACT_CHARSET_H__
|
||||
#define __MW_ABSTRACT_CHARSET_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
MWDECL char* MWAPI MwACPToUTF8(const char* input);
|
||||
|
||||
MWDECL char* MWAPI MwUTF8ToACP(const char* input);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
59
widget/milsko/milskosrc/include/Mw/Abstract/Directory.h
Normal file
59
widget/milsko/milskosrc/include/Mw/Abstract/Directory.h
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
/*!
|
||||
* @file Mw/Abstract/Directory.h
|
||||
* @brief Directory functions
|
||||
*/
|
||||
#ifndef __MW_ABSTRACT_DIRECTORY_H__
|
||||
#define __MW_ABSTRACT_DIRECTORY_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief Opens a directory
|
||||
* @param path Path
|
||||
* @return Handle
|
||||
*/
|
||||
MWDECL void* MWAPI MwDirectoryOpen(const char* path);
|
||||
|
||||
/*!
|
||||
* @brief Closes a directory
|
||||
* @param handle Handle
|
||||
*/
|
||||
MWDECL void MWAPI MwDirectoryClose(void* handle);
|
||||
|
||||
/*!
|
||||
* @brief Reads a directory
|
||||
* @param handle Handle
|
||||
* @return Directory entry
|
||||
*/
|
||||
MWDECL MwDirectoryEntry* MWAPI MwDirectoryRead(void* handle);
|
||||
|
||||
/*!
|
||||
* @brief Frees a directory entry
|
||||
* @param entry Entry
|
||||
*/
|
||||
MWDECL void MWAPI MwDirectoryFreeEntry(MwDirectoryEntry* entry);
|
||||
|
||||
/*!
|
||||
* @brief Gets a current directory
|
||||
* @param Directory
|
||||
*/
|
||||
MWDECL char* MWAPI MwDirectoryCurrent(void);
|
||||
|
||||
/*!
|
||||
* @brief Joins 2 paths
|
||||
* @param a Path
|
||||
* @param b Path
|
||||
* @return Path
|
||||
*/
|
||||
MWDECL char* MWAPI MwDirectoryJoin(char* a, char* b);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
38
widget/milsko/milskosrc/include/Mw/Abstract/Dynamic.h
Normal file
38
widget/milsko/milskosrc/include/Mw/Abstract/Dynamic.h
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
/*!
|
||||
* @file Mw/Abstract/Dynamic.h
|
||||
* @brief Dynamic library
|
||||
*/
|
||||
#ifndef __MW_ABSTRACT_DYNAMIC_H__
|
||||
#define __MW_ABSTRACT_DYNAMIC_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief Opens a dynamic library
|
||||
* @param path Path
|
||||
* @return Handle
|
||||
*/
|
||||
MWDECL void* MWAPI MwDynamicOpen(const char* path);
|
||||
|
||||
/*!
|
||||
* @brief Gets a symbol from the dynamic library
|
||||
* @param handle Handle
|
||||
* @param symbol Symbol
|
||||
*/
|
||||
MWDECL void* MWAPI MwDynamicSymbol(void* handle, const char* symbol);
|
||||
|
||||
/*!
|
||||
* @brief Closes a dynamic library
|
||||
* @param handle Handle
|
||||
*/
|
||||
MWDECL void MWAPI MwDynamicClose(void* handle);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
30
widget/milsko/milskosrc/include/Mw/Abstract/Time.h
Normal file
30
widget/milsko/milskosrc/include/Mw/Abstract/Time.h
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
/*!
|
||||
* @file Mw/Abstract/Time.h
|
||||
* @brief Time
|
||||
*/
|
||||
#ifndef __MW_ABSTRACT_TIME_H__
|
||||
#define __MW_ABSTRACT_TIME_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @brief Sleeps for milliseconds
|
||||
* @param ms Milliseconds
|
||||
*/
|
||||
MWDECL void MWAPI MwTimeSleep(int ms);
|
||||
|
||||
/*!
|
||||
* @brief Gets a monotonic time
|
||||
* @return Monotonic time
|
||||
*/
|
||||
MWDECL long MWAPI MwTimeGetTick(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue