summaryrefslogtreecommitdiffstats
path: root/thk04/jutils.h
diff options
context:
space:
mode:
Diffstat (limited to 'thk04/jutils.h')
-rw-r--r--thk04/jutils.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/thk04/jutils.h b/thk04/jutils.h
new file mode 100644
index 0000000..0c010bd
--- /dev/null
+++ b/thk04/jutils.h
@@ -0,0 +1,51 @@
+/* FreeJ
+ * (c) Copyright 2001 Denis Roio aka jaromil <jaromil@dyne.org>
+ *
+ * This source code is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Public License as published
+ * by the Free Software Foundation; either version 2 of the License,
+ * or (at your option) any later version.
+ *
+ * This source code is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ * Please refer to the GNU Public License for more details.
+ *
+ * You should have received a copy of the GNU Public License along with
+ * this source code; if not, write to:
+ * Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#ifndef __UTILS_H__
+#define __UTILS_H__
+
+#include <SDL.h>
+
+extern char msg[255];
+
+extern void *(*jmemcpy)( void *to, const void *from, size_t len );
+void jmemset(void * s, unsigned long c ,size_t count);
+
+void set_debug(int lev);
+int get_debug();
+void set_osd(char *st);
+void show_osd();
+void show_osd(char *format, ...);
+void notice(char *format, ...);
+void func(char *format, ...);
+void error(char *format, ...);
+void act(char *format, ...);
+void warning(char *format, ...);
+void *jalloc(void *point,size_t size);
+bool jfree(void *point);
+Uint32 fastrand();
+void fastsrand(Uint32 seed);
+double dtime();
+bool set_rtpriority(bool max);
+void jsleep(int sec, long nsec);
+int rtc_open();
+unsigned long rtc_tick();
+void rtc_freq_set(unsigned long freq);
+void rtc_freq_wait();
+void rtc_close();
+#endif