view CodeGeneration/CustomFunctions.json @ 69:dcd69fbcc34b

wrapping OrthancPluginDequeueValue
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 21 Aug 2025 16:16:46 +0200
parents 65c86e666eda
children e673eadccf7d
line wrap: on
line source

[
  {
    "comment" : "New in release 2.0",
    "c_function" : "OrthancPluginCustom_GetQueueSize",
    "sdk_functions" : [ "OrthancPluginGetQueueSize" ],
    "documentation" : {
      "description" : [ "Get the number of elements in a queue." ],
      "args" : {
        "queueId" : "The identifier of the queue."
      },
      "return" : "The size of the queue."
    },
    "args" : [
      {
        "sdk_name" : "queueId",
        "sdk_type" : "const char *"
      }
    ],
    "return_sdk_type" : "uint64_t",
    "since_sdk" : [ 1, 12, 8 ]
  },

  {
    "comment" : "New in release 2.0",
    "c_function" : "OrthancPluginCustom_DequeueValue",
    "sdk_functions" : [ "OrthancPluginDequeueValue" ],
    "documentation" : {
      "description" : [ "Dequeue a value from a queue." ],
      "args" : {
        "queueId" : "The identifier of the queue.",
        "origin" : "The position from where the value is dequeued (back for LIFO, front for FIFO)."
      },
      "return" : "The dequeued value as a byte array, or null if the queue was empty."
    },
    "args" : [
      {
        "sdk_name" : "queueId",
        "sdk_type" : "const char *"
      },
      {
        "sdk_name" : "origin",
        "sdk_type" : "enumeration",
        "sdk_enumeration" : "OrthancPluginQueueOrigin"
      }
    ],
    "return_sdk_type" : "java_object",
    "return_sdk_class" : "byte[]",
    "return_sdk_signature" : "[B",
    "since_sdk" : [ 1, 12, 8 ]
  },

  {
    "comment" : "New in release 2.0",
    "c_function" : "OrthancPluginCustom_GetKeyValue",
    "sdk_functions" : [ "OrthancPluginGetKeyValue" ],
    "documentation" : {
      "description" : [ "Get the value associated with a key in the Orthanc key-value store." ],
      "args" : {
        "storeId" : "The key-value store.",
        "key" : "The key."
      },
      "return" : "The value as a byte array, or null if the key does not exist."
    },
    "args" : [
      {
        "sdk_name" : "storeId",
        "sdk_type" : "const char *"
      },
      {
        "sdk_name" : "key",
        "sdk_type" : "const char *"
      }
    ],
    "return_sdk_type" : "java_object",
    "return_sdk_class" : "byte[]",
    "return_sdk_signature" : "[B",
    "since_sdk" : [ 1, 12, 8 ]
  }
]