summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2009-08-25 19:45:42 +0200
committerGravatar waker <wakeroid@gmail.com>2009-08-25 19:45:42 +0200
commitc0f0e9b2eb89aef7d9cf2056412a5803ca16674f (patch)
treec9e60d0987104f8a899f8309c2f1fff464910c1a
parent9239126c2c5dc945e0ea927f87b2128d0c65ad73 (diff)
added playitem allocation function
-rw-r--r--playlist.c5
-rw-r--r--playlist.h3
2 files changed, 8 insertions, 0 deletions
diff --git a/playlist.c b/playlist.c
index 0cbc24c7..c033583a 100644
--- a/playlist.c
+++ b/playlist.c
@@ -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) {
diff --git a/playlist.h b/playlist.h
index e1ab678c..d8fe1d6e 100644
--- a/playlist.h
+++ b/playlist.h
@@ -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);