diff options
author | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-04-11 21:35:42 +0000 |
---|---|---|
committer | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-04-11 21:35:42 +0000 |
commit | ca10f86763f58b7b3667e2ca7d26db3dc810eb20 (patch) | |
tree | df0e6a1b430a4e0c68e7d11d83c1f974afe3c412 /qemu-common.h | |
parent | ea86e4e6007af70a5e23c4f93eea9d0732e3bcb0 (diff) |
Remove osdep.c/qemu-img code duplication
(Kevin Wolf)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4191 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'qemu-common.h')
-rw-r--r-- | qemu-common.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/qemu-common.h b/qemu-common.h index 746dcc5d63..a246144672 100644 --- a/qemu-common.h +++ b/qemu-common.h @@ -86,6 +86,14 @@ int strstart(const char *str, const char *val, const char **ptr); int stristart(const char *str, const char *val, const char **ptr); time_t mktimegm(struct tm *tm); +void *qemu_malloc(size_t size); +void *qemu_mallocz(size_t size); +void qemu_free(void *ptr); +char *qemu_strdup(const char *str); + +void *get_mmap_addr(unsigned long size); + + /* Error handling. */ void hw_error(const char *fmt, ...) |