diff --git a/LGMP b/LGMP index f37dba4a..26d9f9a5 160000 --- a/LGMP +++ b/LGMP @@ -1 +1 @@ -Subproject commit f37dba4a4a539d6ba8ad7cc6a3230b6131b49eb0 +Subproject commit 26d9f9a59e837a3ea671ebf3b2b0549630ed5f11 diff --git a/VERSION b/VERSION index 02554f39..7a4c27bd 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -B1-72-g3253e7fd10+1 \ No newline at end of file +B1-73-gc92312a6c6+1 \ No newline at end of file diff --git a/c-host/src/app.c b/c-host/src/app.c index 3e84eb23..92eb5d75 100644 --- a/c-host/src/app.c +++ b/c-host/src/app.c @@ -39,8 +39,22 @@ Place, Suite 330, Boston, MA 02111-1307 USA #define ALIGN_DN(x) ((uintptr_t)(x) & ~0x7F) #define ALIGN_UP(x) ALIGN_DN(x + 0x7F) -#define LGMP_Q_POINTER_LEN 20 #define LGMP_Q_FRAME_LEN 2 +#define LGMP_Q_POINTER_LEN 20 + +static const struct LGMPQueueConfig FRAME_QUEUE_CONFIG = +{ + .queueID = LGMP_Q_FRAME, + .numMessages = LGMP_Q_FRAME_LEN, + .subTimeout = 1000 +}; + +static const struct LGMPQueueConfig POINTER_QUEUE_CONFIG = +{ + .queueID = LGMP_Q_POINTER, + .numMessages = LGMP_Q_POINTER_LEN, + .subTimeout = 1000 +}; #define MAX_POINTER_SIZE (sizeof(KVMFRCursor) + (128 * 128 * 4)) @@ -390,13 +404,13 @@ int app_main(int argc, char * argv[]) goto fail; } - if ((status = lgmpHostQueueNew(app.lgmp, LGMP_Q_FRAME, LGMP_Q_FRAME_LEN, &app.frameQueue)) != LGMP_OK) + if ((status = lgmpHostQueueNew(app.lgmp, FRAME_QUEUE_CONFIG, &app.frameQueue)) != LGMP_OK) { DEBUG_ERROR("lgmpHostQueueCreate Failed (Frame): %s", lgmpStatusString(status)); goto fail; } - if ((status = lgmpHostQueueNew(app.lgmp, LGMP_Q_POINTER, LGMP_Q_POINTER_LEN, &app.pointerQueue)) != LGMP_OK) + if ((status = lgmpHostQueueNew(app.lgmp, POINTER_QUEUE_CONFIG, &app.pointerQueue)) != LGMP_OK) { DEBUG_ERROR("lgmpHostQueueNew Failed (Pointer): %s", lgmpStatusString(status)); goto fail;