diff options
author | waker <wakeroid@gmail.com> | 2009-08-25 19:45:42 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2009-08-25 19:45:42 +0200 |
commit | c0f0e9b2eb89aef7d9cf2056412a5803ca16674f (patch) | |
tree | c9e60d0987104f8a899f8309c2f1fff464910c1a | |
parent | 9239126c2c5dc945e0ea927f87b2128d0c65ad73 (diff) |
added playitem allocation function
-rw-r--r-- | playlist.c | 5 | ||||
-rw-r--r-- | playlist.h | 3 |
2 files changed, 8 insertions, 0 deletions
@@ -559,6 +559,11 @@ pl_item_copy (playItem_t *out, playItem_t *it) { } } +playItem_t * +pl_item_alloc (void) { + return malloc (sizeof (playItem_t)); +} + void pl_item_free (playItem_t *it) { if (it) { @@ -73,6 +73,9 @@ pl_append_item (playItem_t *it); int pl_remove (playItem_t *i); +playItem_t * +pl_item_alloc (void); + void pl_item_free (playItem_t *it); |