diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-05-19 01:01:00 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-05-19 01:01:00 +0000 |
commit | a591b9ca86b86684f2804cedf5d0c17a3614e913 (patch) | |
tree | b60235b0a038088298aa0f5497411fcb453c424d /nuttx/graphics/nxmu/nxmu_server.c | |
parent | 6cf694d2da5a661373a58c70e3d8e07cc8223eed (diff) | |
download | px4-nuttx-a591b9ca86b86684f2804cedf5d0c17a3614e913.tar.gz px4-nuttx-a591b9ca86b86684f2804cedf5d0c17a3614e913.tar.bz2 px4-nuttx-a591b9ca86b86684f2804cedf5d0c17a3614e913.zip |
NxWM: Add a missing part of the message blocking logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4748 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/graphics/nxmu/nxmu_server.c')
-rw-r--r-- | nuttx/graphics/nxmu/nxmu_server.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nuttx/graphics/nxmu/nxmu_server.c b/nuttx/graphics/nxmu/nxmu_server.c index c412b1492..2730e0ea2 100644 --- a/nuttx/graphics/nxmu/nxmu_server.c +++ b/nuttx/graphics/nxmu/nxmu_server.c @@ -154,13 +154,14 @@ static inline void nxmu_shutdown(FAR struct nxfe_state_s *fe) * Name: nxmu_blocked ****************************************************************************/ -static inline void nxmu_blocked(FAR struct nxbe_window_s *wnd) +static inline void nxmu_blocked(FAR struct nxbe_window_s *wnd, FAR void *arg) { struct nxclimsg_blocked_s outmsg; int ret; outmsg.msgid = NX_CLIMSG_BLOCKED; outmsg.wnd = wnd; + outmsg.arg = arg; ret = nxmu_sendclient(wnd->conn, &outmsg, sizeof(struct nxclimsg_blocked_s)); if (ret < 0) @@ -380,7 +381,7 @@ int nx_runinstance(FAR const char *mqname, FAR NX_DRIVERTYPE *dev) case NX_SVRMSG_BLOCKED: /* Block messsages to a window */ { FAR struct nxsvrmsg_blocked_s *blocked = (FAR struct nxsvrmsg_blocked_s *)buffer; - nxmu_blocked(blocked->wnd); + nxmu_blocked(blocked->wnd, blocked->arg); } break; |