C语言中这段话是什么意思?

来源:百度知道 编辑:UC知道 时间:2024/05/20 04:40:50
#ifndef __GPHOTO2_LIBRARY_H__
#define __GPHOTO2_LIBRARY_H__

#include <gphoto2/gphoto2-abilities-list.h>
#include <gphoto2/gphoto2-camera.h>

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

/**
* \brief Returns a unique id for the camera driver.
*
* \param id a #CameraText
* \return a gphoto2 error code
*
**/
typedef int (* CameraLibraryIdFunc) (CameraText *id);

/**
* \brief Adds the abilities of the supported models to the supplied list.
*
* \param list a #CameraAbilitiesList
* \return a gphoto2 error code
*
**/
typedef int (* CameraLibraryAbilitiesFunc) (CameraAbilitiesList *list);

/**
* \brief Initializes the camera.
*
* \param camera a #Camera
* \param context a #GPContext
* \return a gphoto2 error code
*
* The

自定义 类型

typedef语句的功能是为某个已有的数据类型定义一个新的同义词或者别名
其格式为:
typedef <数据类型或数据类型名> <新数据类型名>
例如
typedef real int;后就可以用real代替int了
这样real x,y;等价于int x,y;