handle.h 454 Bytes
Newer Older
PanZezhongQY's avatar
PanZezhongQY committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef __INFINIOP_HANDLE__
#define __INFINIOP_HANDLE__

#include "../infinicore.h"
#include "./status.h"

typedef struct InfiniopHandle {
    infiniDevice_t device;
    int device_id;
} InfiniopHandle;

typedef InfiniopHandle *infiniopHandle_t;

__C __export infiniopStatus_t infiniopCreateHandle(infiniopHandle_t *handle_ptr, infiniDevice_t device, int device_id);

__C __export infiniopStatus_t infiniopDestroyHandle(infiniopHandle_t handle);

#endif