summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/sdl/sdlos.h
diff options
context:
space:
mode:
author Couriersud <couriersud@users.noreply.github.com>2010-01-21 22:54:49 +0000
committer Couriersud <couriersud@users.noreply.github.com>2010-01-21 22:54:49 +0000
commit10bee5ce7812d7faaecf238cf9570b802e02d56e (patch)
treecf71fbbc9cb1fb53efefef35bb916df2860fad15 /src/osd/sdl/sdlos.h
parenta63d3b5de485918abd8bca4079ac221fe62f1d15 (diff)
The return of the "misc"
- Added sdlmisc_<targetos>.c again. This was necessary since certain tools create stubs for e.g. osd_break_into_debugger. If we do not have this in a separate file, the link stage may break. - Applied OS/2 patch [Credit: KO Myung-Hun] - Cleaned up #includes. Removed stdlib.h were possible. - More malloc to osd_malloc rename. - SDL monitor modes are read now when they are needed. This is now consistent across platforms.
Diffstat (limited to 'src/osd/sdl/sdlos.h')
-rw-r--r--src/osd/sdl/sdlos.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/osd/sdl/sdlos.h b/src/osd/sdl/sdlos.h
index a0db5dacad1..9b9f5d8a7e2 100644
--- a/src/osd/sdl/sdlos.h
+++ b/src/osd/sdl/sdlos.h
@@ -26,4 +26,33 @@
int osd_num_processors(void);
+/*-----------------------------------------------------------------------------
+ osd_getenv: return pointer to environment variable
+
+ Parameters:
+
+ name - name of environment variable
+
+ Return value:
+
+ pointer to value
+-----------------------------------------------------------------------------*/
+char *osd_getenv(const char *name);
+
+/*-----------------------------------------------------------------------------
+ osd_setenv: set environment variable
+
+ Parameters:
+
+ name - name of environment variable
+ value - value to write
+ overwrite - overwrite if it exists
+
+ Return value:
+
+ 0 on success
+-----------------------------------------------------------------------------*/
+
+int osd_setenv(const char *name, const char *value, int overwrite);
+
#endif /* __SDLOS__ */