diff options
Diffstat (limited to 'LayerManagerClient')
-rw-r--r-- | LayerManagerClient/ilmClient/include/ilm_types.h | 2 | ||||
-rw-r--r-- | LayerManagerClient/ilmClient/src/generic_ilm_client.c | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/LayerManagerClient/ilmClient/include/ilm_types.h b/LayerManagerClient/ilmClient/include/ilm_types.h index dc9f0ab..321925a 100644 --- a/LayerManagerClient/ilmClient/include/ilm_types.h +++ b/LayerManagerClient/ilmClient/include/ilm_types.h @@ -198,6 +198,7 @@ struct ilmSurfaceProperties t_ilm_uint chromaKeyRed; /*!< chromakey's red value of the surface */ t_ilm_uint chromaKeyGreen; /*!< chromakey's green value of the surface */ t_ilm_uint chromaKeyBlue; /*!< chromakey's blue value of the surface */ + t_ilm_int creatorPid; /*!< process id of application that created this surface */ }; /** @@ -224,6 +225,7 @@ struct ilmLayerProperties t_ilm_uint chromaKeyRed; /*!< chromakey's red value of the layer */ t_ilm_uint chromaKeyGreen; /*!< chromakey's green value of the layer */ t_ilm_uint chromaKeyBlue; /*!< chromakey's blue value of the layer */ + t_ilm_int creatorPid; /*!< process id of application that created this layer */ }; /** diff --git a/LayerManagerClient/ilmClient/src/generic_ilm_client.c b/LayerManagerClient/ilmClient/src/generic_ilm_client.c index 64696d3..da69878 100644 --- a/LayerManagerClient/ilmClient/src/generic_ilm_client.c +++ b/LayerManagerClient/ilmClient/src/generic_ilm_client.c @@ -261,6 +261,7 @@ void* notificationThreadLoop(void* param) gIpcModule.getUint(notification, &properties.chromaKeyRed); gIpcModule.getUint(notification, &properties.chromaKeyGreen); gIpcModule.getUint(notification, &properties.chromaKeyBlue); + gIpcModule.getInt(notification, &properties.creatorPid); layerNotificationFunc func = getLayerNotificationCallback(id); if (func) @@ -304,6 +305,7 @@ void* notificationThreadLoop(void* param) gIpcModule.getUint(notification, &properties.chromaKeyRed); gIpcModule.getUint(notification, &properties.chromaKeyGreen); gIpcModule.getUint(notification, &properties.chromaKeyBlue); + gIpcModule.getInt(notification, &properties.creatorPid); surfaceNotificationFunc func = getSurfaceNotificationCallback(id); if (func) @@ -571,7 +573,8 @@ ilmErrorTypes ilm_getPropertiesOfSurface(t_ilm_uint surfaceID, struct ilmSurface && gIpcModule.getBool(response, &pSurfaceProperties->chromaKeyEnabled) && gIpcModule.getUint(response, &pSurfaceProperties->chromaKeyRed) && gIpcModule.getUint(response, &pSurfaceProperties->chromaKeyGreen) - && gIpcModule.getUint(response, &pSurfaceProperties->chromaKeyBlue)) + && gIpcModule.getUint(response, &pSurfaceProperties->chromaKeyBlue) + && gIpcModule.getInt(response, &pSurfaceProperties->creatorPid)) { returnValue = ILM_SUCCESS; } @@ -611,7 +614,8 @@ ilmErrorTypes ilm_getPropertiesOfLayer(t_ilm_uint layerID, struct ilmLayerProper && gIpcModule.getBool(response, &pLayerProperties->chromaKeyEnabled) && gIpcModule.getUint(response, &pLayerProperties->chromaKeyRed) && gIpcModule.getUint(response, &pLayerProperties->chromaKeyGreen) - && gIpcModule.getUint(response, &pLayerProperties->chromaKeyBlue)) + && gIpcModule.getUint(response, &pLayerProperties->chromaKeyBlue) + && gIpcModule.getInt(response, &pLayerProperties->creatorPid)) { returnValue = ILM_SUCCESS; } |