Common header files in the Defer to Kernel example

defer_to_kernel_common.h

#ifndef DEFER_TO_KERNEL_COMMON_H

#define DEFER_TO_KERNEL_COMMON_H

#include <stdio.h>

#include <stdlib.h>

#define NK_USE_UNQUALIFIED_NAMES

/* Files required for transport initialization. */

#include <coresrv/nk/transport-kos.h>

#include <coresrv/handle/handle_api.h>

#include <coresrv/cm/cm_api.h>

#include <coresrv/ns/ns_api.h>

#include <rtl/minmax.h>

#define UCORE_STRING_SIZE 1024

#define NS_WAIT_TIME_MS 10000

static const char InterfaceType[] = "defer_to_kernel.Get";

#endif

defer_to_kernel_common_client.h

#ifndef DEFER_TO_KERNEL_CLIENT_COMMON_H

#define DEFER_TO_KERNEL_CLIENT_COMMON_H

#include "defer_to_kernel_common.h"

#include <coresrv/thread/thread_api.h>

/* PictureManager interface description. */

#include <defer_to_kernel/Get.idl.h>

#define INTERFACE_INDEX 0

#define RISEUP_TIMEOUT_MSEC 2000U

#define TIMEOUT_MSEC 10000U

#endif

Page top