handle.h 437 Bytes
Newer Older
PanZezhongQY's avatar
PanZezhongQY committed
1
2
3
4
#ifndef __INFINIOP_HANDLE__
#define __INFINIOP_HANDLE__

#include "../infinicore.h"
5
#include "status.h"
PanZezhongQY's avatar
PanZezhongQY committed
6
7
8
9
10
11
12
13

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

typedef InfiniopHandle *infiniopHandle_t;

14
__C __export infiniopStatus_t infiniopCreateHandle(infiniopHandle_t *handle_ptr, infiniDevice_t device);
PanZezhongQY's avatar
PanZezhongQY committed
15
16
17
18

__C __export infiniopStatus_t infiniopDestroyHandle(infiniopHandle_t handle);

#endif