summaryrefslogtreecommitdiff
path: root/sys/shm/shmpipe.c
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2011-03-16 18:51:50 +0000
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2011-03-16 18:53:19 +0000
commitca9d60702f11c00f6e04bf47a024279e91aa4729 (patch)
tree8cb4b9ef6a51197f5dea4b9b48bb49f1bb51d2c8 /sys/shm/shmpipe.c
parentf6efb3e397fd230667865d3477759151084344eb (diff)
downloadgstreamer-plugins-bad-ca9d60702f11c00f6e04bf47a024279e91aa4729.tar.gz
shm: Allow ShmPipe to save a data pointer for applications
Diffstat (limited to 'sys/shm/shmpipe.c')
-rw-r--r--sys/shm/shmpipe.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/sys/shm/shmpipe.c b/sys/shm/shmpipe.c
index cf3be9429..209a13b25 100644
--- a/sys/shm/shmpipe.c
+++ b/sys/shm/shmpipe.c
@@ -120,6 +120,7 @@ struct _ShmPipe
int main_socket;
char *socket_path;
int use_count;
+ void *data;
ShmArea *shm_area;
@@ -374,6 +375,18 @@ sp_shm_area_dec (ShmPipe * self, ShmArea * area)
}
}
+void *
+sp_get_data (ShmPipe * self)
+{
+ return self->data;
+}
+
+void
+sp_set_data (ShmPipe * self, void *data)
+{
+ self->data = data;
+}
+
static void
sp_inc (ShmPipe * self)
{