⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 spcacompat.h

📁 linux下的摄像头驱动
💻 H
字号:
 #ifndef SPCA_COMPAT_H#define SPCA_COMPAT_H#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 24)static inline void * video_get_drvdata(struct video_device *vdev){        return vdev->priv;}static inline void video_set_drvdata(struct video_device *vdev, void *data){        vdev->priv = data;}static inline struct video_device *video_device_alloc(void){	struct video_device *vdev;	vdev = kmalloc(sizeof(*vdev),GFP_KERNEL);	if (NULL == vdev)		return NULL;	memset(vdev,0,sizeof(*vdev));	return vdev;}static inline void video_device_release(struct video_device *vdev){	kfree(vdev);}#endif#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -