handle.h 413 Bytes
Newer Older
PanZezhongQY's avatar
PanZezhongQY committed
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef __INFINIOP_HANDLE__
#define __INFINIOP_HANDLE__

#include "../infinicore.h"

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

typedef InfiniopHandle *infiniopHandle_t;

PanZezhong's avatar
PanZezhong committed
13
__C __export infiniStatus_t infiniopCreateHandle(infiniopHandle_t *handle_ptr, infiniDevice_t device);
PanZezhongQY's avatar
PanZezhongQY committed
14

PanZezhong's avatar
PanZezhong committed
15
__C __export infiniStatus_t infiniopDestroyHandle(infiniopHandle_t handle);
PanZezhongQY's avatar
PanZezhongQY committed
16
17

#endif