]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ipc/ipcdev.git/blobdiff - hlos_common/include/_MessageQ.h
mm: Update code for better portability
[ipc/ipcdev.git] / hlos_common / include / _MessageQ.h
index acf006d735d3cc47e3e1d27e3fa885de65725302..eeb4d54d8794f4a06785a89095e349e525c78c97 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  Copyright (c) 2008-2013, Texas Instruments Incorporated
+ *  Copyright (c) 2008-2015 Texas Instruments Incorporated - http://www.ti.com
  *  All rights reserved.
  *
  *  Redistribution and use in source and binary forms, with or without
@@ -41,6 +41,7 @@
 #define MESSAGEQ_H_0xded2
 
 /* Utilities headers */
+#include <ti/ipc/MessageQ.h>
 #include <ti/ipc/NameServer.h>
 
 
@@ -79,7 +80,6 @@ extern "C" {
 /*! Shift for Trace setting */
 #define MessageQ_TRACESHIFT      (UInt) 12
 
-
 /*!
  *  @brief  Structure defining config parameters for the MessageQ Buf module.
  */
@@ -89,16 +89,24 @@ typedef struct MessageQ_Config_tag {
      *  This flag allows the configuration of the default module trace
      *  settings.
      */
+    UInt numHeaps;
+    /*!< Number of heapIds in the system */
     UInt maxRuntimeEntries;
     /*!< Maximum number of MessageQs that can be dynamically created */
     UInt maxNameLen;
     /*!< Maximum length for Message queue names */
+    UInt numReservedEntries;
+    /*!< Number of reserved message queue indexes */
 } MessageQ_Config;
 
 /* =============================================================================
  *  APIs
  * =============================================================================
  */
+
+/* Internal variable to enable/disable tracing throughout MessageQ */
+extern Bool _MessageQ_verbose;
+
 /*!
  *  @brief      Function to get the default configuration for the MessageQ
  *              module.
@@ -164,6 +172,8 @@ Void MessageQ_cleanupOwner(Int pid);
 
 Void MessageQ_msgInit(MessageQ_Msg msg);
 
+Void _MessageQ_setNumReservedEntries(UInt n);
+
 #if defined (__cplusplus)
 }
 #endif /* defined (__cplusplus) */