summaryrefslogtreecommitdiff
path: root/LayerManagerClient
diff options
context:
space:
mode:
authorTimo Lotterbach <timo.lotterbach@bmw-carit.de>2012-10-17 02:25:38 -0700
committerTimo Lotterbach <timo.lotterbach@bmw-carit.de>2012-10-22 03:55:52 -0700
commitdc1151c22523eb63f5b99bd8fa68a56d8fe31956 (patch)
treedabd7d3c2a5315e8debc9b2779cc4b9b786719a6 /LayerManagerClient
parent84cee0a1f8e91fa7b1c198f1f894ccda3d2d3ce2 (diff)
downloadlayer_management-dc1151c22523eb63f5b99bd8fa68a56d8fe31956.tar.gz
GenericCommunicator: passes the pid to every created command object
Diffstat (limited to 'LayerManagerClient')
-rw-r--r--LayerManagerClient/ilmClient/include/ilm_types.h2
-rw-r--r--LayerManagerClient/ilmClient/src/generic_ilm_client.c8
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;
}