39 #define LOCK_DIR "/dev/shm_netint"
40 #define CODERS_LCK_NAME "/dev/shm_netint/NI_LOGAN_LCK_CODERS"
41 #define CODERS_RETRY_DELCK_NAME "/dev/shm_netint/NI_LOGAN_RETRY_LCK_DECODERS"
42 #define CODERS_RETRY_ENLCK_NAME "/dev/shm_netint/NI_LOGAN_RETRY_LCK_ENCODERS"
43 #elif defined(__APPLE__)
44 #define LOCK_DIR "/tmp"
45 #define CODERS_LCK_NAME "/tmp/NI_LOGAN_LCK_CODERS"
46 #define CODERS_RETRY_DELCK_NAME "/tmp/NI_LOGAN_RETRY_LCK_DECODERS"
47 #define CODERS_RETRY_ENLCK_NAME "/tmp/NI_LOGAN_RETRY_LCK_ENCODERS"
49 #define LOCK_DIR "/dev/shm"
50 #define CODERS_LCK_NAME "/dev/shm/NI_LOGAN_LCK_CODERS"
51 #define CODERS_RETRY_DELCK_NAME "/dev/shm/NI_LOGAN_RETRY_LCK_DECODERS"
52 #define CODERS_RETRY_ENLCK_NAME "/dev/shm/NI_LOGAN_RETRY_LCK_ENCODERS"
55 #define CODERS_SHM_NAME "NI_LOGAN_SHM_CODERS"
58 #define MAX_LOCK_RETRY 6000
59 #define LOCK_WAIT 10000
#define NI_LOGAN_MAX_DEVICE_NAME_LEN
Main NETINT device API header file provides the ability to communicate with NI T-408 type hardware tr...
void ni_logan_rsrc_get_lock_name(ni_logan_device_type_t device_type, int32_t guid, char *p_name, size_t max_name_len)
Returns the device lock name.
ni_logan_retcode_t ni_logan_rsrc_fill_device_info(ni_logan_device_info_t *p_device_info, ni_codec_t fmt, ni_logan_device_type_t type, ni_logan_hw_capability_t *p_hw_cap)
Update codec record info with retrieved device info from HW.
LIB_API uint32_t g_logan_xcoder_stop_process
void ni_logan_rsrc_get_one_device_info(ni_logan_device_info_t *p_device_info)
Retrieve codec record info.
void ni_logan_rsrc_get_shm_name(ni_logan_device_type_t device_type, int32_t guid, char *p_name, size_t max_name_len)
Returns the name of shared memory of the codec record.
void ni_logan_rsrc_update_record(ni_logan_device_context_t *p_device_context, ni_logan_session_context_t *p_session_ctx)
Updates the codec record.
int ni_logan_is_fw_compatible(uint8_t fw_rev[8])
Check if a FW_rev retrieved from card is supported by libxcoder. Support is checked for API flavor,...
int ni_logan_rsrc_enumerate_devices(char ni_logan_devices[][NI_LOGAN_MAX_DEVICE_NAME_LEN], int max_handles)
List NETINT nvme devices.
int ni_logan_rsrc_strcmp(const void *p_str, const void *p_str1)
String comparison function.