summaryrefslogtreecommitdiff
path: root/libpsx/include/psxbios.h
diff options
context:
space:
mode:
authorXavi Del Campo <xavi.dcr@tutanota.com>2020-02-01 00:51:53 +0100
committerXavi Del Campo <xavi.dcr@tutanota.com>2020-02-01 00:51:53 +0100
commit805fc37a06b41d6a52b2994dcfda794b0e476b4d (patch)
tree479afad552bf982e36c845fa416ce074a87ab208 /libpsx/include/psxbios.h
parent5f638ea86cd1ee29ab9942ba32ae87c12bb1fb0f (diff)
downloadpsxsdk-805fc37a06b41d6a52b2994dcfda794b0e476b4d.tar.gz
Added missing extern "C"
Diffstat (limited to 'libpsx/include/psxbios.h')
-rw-r--r--libpsx/include/psxbios.h25
1 files changed, 17 insertions, 8 deletions
diff --git a/libpsx/include/psxbios.h b/libpsx/include/psxbios.h
index 9275393..1738fa3 100644
--- a/libpsx/include/psxbios.h
+++ b/libpsx/include/psxbios.h
@@ -5,6 +5,11 @@
#ifndef _PSXBIOS_H
#define _PSXBIOS_H
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
/* Joypad functions */
extern void PAD_init(unsigned long mode, unsigned long *pad_buf);
@@ -12,11 +17,11 @@ extern int PAD_dr(void);
/* ROM information functions */
-/**
+/**
* Returns PSX kernel date.
* @return Kernel date n 0xYYYYMMDD BCD format.
*/
-
+
unsigned long GetKernelDate(void);
/**
@@ -90,7 +95,7 @@ struct DIRENTRY
* Characters after * are ignored.
* @param name File name string
* @param dirent Pointer to a struct DIRENTRY object.
- * @return dirent on success, NULL on failure.
+ * @return dirent on success, NULL on failure.
*/
struct DIRENTRY *firstfile(const char *name, struct DIRENTRY *dirent);
@@ -106,7 +111,7 @@ struct DIRENTRY *firstfile(const char *name, struct DIRENTRY *dirent);
struct DIRENTRY *nextfile(struct DIRENTRY *dir);
-/**
+/**
* Gets the file size of the file named "name".
* It is actually just a wrapper around firstfile.
* It rounds the file size to the block size (2048).
@@ -122,7 +127,7 @@ int get_file_size(const char *name);
* @param name File name string
* @return File size in bytes, unrounded.
*/
-
+
int get_real_file_size(const char *name);
void InitHeap(void *block , int size);
@@ -182,7 +187,7 @@ int DisableEvent(unsigned int event);
int DeliverEvent(unsigned int ev1, // Cause descriptor
int ev2); // Event class
-
+
/**
* Checks if the event specified by its identifier has occured
* @param event Numerical event identifier
@@ -203,13 +208,17 @@ int WaitEvent(unsigned int event);
* Replaces the executable image in memory with the one
* contained in another executable file in PSX-EXE format.
* WARNING: Does not work right now.
- *
+ *
* Most likely you want PSX_RunExe()
* @param name Path name of PSX-EXE executable
* @param argc Number of arguments
* @param argv Pointer to an array of string pointers for each argument
*/
-
+
void LoadExec(char *name, int argc, char **argv);
+#ifdef __cplusplus
+}
+#endif
+
#endif