]> git.xonotic.org Git - xonotic/d0_blind_id.git/blobdiff - d0.h
add a framework to define mutex functions
[xonotic/d0_blind_id.git] / d0.h
diff --git a/d0.h b/d0.h
index c444e0c1d468f368691ef9d4a41b94577347b08a..bd0776539c898e20ccbb1c4a8bbc19df78374196 100644 (file)
--- a/d0.h
+++ b/d0.h
@@ -29,7 +29,8 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- * $Format:commit %H$, $Id$
+ * $Format:commit %H$
+ * $Id$
  */
 
 #ifndef __D0_H__
 
 #include <unistd.h> // size_t
 
-#define EXPORT __attribute__((__visibility__("default")))
-#define WARN_UNUSED_RESULT __attribute__((warn_unused_result))
-#define BOOL int
+#define D0_EXPORT __attribute__((__visibility__("default")))
+#define D0_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
+#define D0_BOOL int
 
 extern void *(*d0_malloc)(size_t len);
 extern void (*d0_free)(void *p);
-extern const char *d0_bsd_license_notitce;
+
+extern void *(*d0_createmutex)(void);
+extern void (*d0_destroymutex)(void *);
+extern int (*d0_lockmutex)(void *); // zero on success
+extern int (*d0_unlockmutex)(void *); // zero on success
+
+extern const char *d0_bsd_license_notice;
 
 #endif