[Mod] 优化Makefile
This commit is contained in:
28
03-Bus/01-Platform/01-osdev/OSAL_osdev.h.bak
Normal file
28
03-Bus/01-Platform/01-osdev/OSAL_osdev.h.bak
Normal file
@ -0,0 +1,28 @@
|
||||
/*******************************************************************************
|
||||
* HangZhou Hikvision Digital Technology Co., Ltd. All Right Reserved.
|
||||
* Author :
|
||||
* Version : V1.0.0 2024.11.15
|
||||
* Description :
|
||||
* Note : anonymity@hikvision.com.cn Modified 2024.11.15
|
||||
******************************************************************************/
|
||||
#ifndef INCLUDE_WIDGET_OSAL_OSDEV_H_
|
||||
#define INCLUDE_WIDGET_OSAL_OSDEV_H_
|
||||
|
||||
typedef struct osdev {
|
||||
int id;
|
||||
const char *name;
|
||||
void *obj;
|
||||
} OSAL_osdev;
|
||||
|
||||
typedef struct osdrv {
|
||||
int (*probe)(struct osdev *);
|
||||
int (*remove)(struct osdev *);
|
||||
void *obj;
|
||||
} OSAL_osdrv;
|
||||
|
||||
int OSAL_osdevRegister(OSAL_osdev *osdev);
|
||||
void OSAL_osdevUnregister(OSAL_osdev *osdev);
|
||||
void *OSAL_osdevGetDrvdata(const OSAL_osdev *osdev);
|
||||
void OSAL_osdevSetDrvdata(OSAL_osdev *osdev, void *data);
|
||||
|
||||
#endif /* INCLUDE_WIDGET_OSAL_OSDEV_H_ */
|
||||
Reference in New Issue
Block a user