在 C 代码中包含 wpa_ctrl.h [英] including wpa_ctrl.h in a C code

查看:91
本文介绍了在 C 代码中包含 wpa_ctrl.h的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在 C 代码中添加 wpa_ctrl.h源代码 具有以下头文件:

I would like to add wpa_ctrl.h on a C code, and the source code has the following header files:

#include "includes.h"
#include "common.h"

我该如何拥有它们?我是否需要安装任何软件包,或者它们是否应该位于内核头文件或包含路径中?如果需要手动包含,那么每个文件依赖的头文件很多,需要手动添加,有没有方便的方法添加需要的文件

how do I suppose to have them? Do I need to install any package or do they suppose to be at the kernel header files or in the include path? If I need to include it manually, then each file depends on some many header files that needs to be added manually, is there a convenient way to add the files that are needed

推荐答案

这些文件是 hostapd 项目的一部分,以及不会安装的内部头文件,因此您不能在安装包后直接包含它们.

These files are part of the hostapd project, and internal header files that won't be installed so you can't just include them after installing the package.

您最好从 wpa_ctrl.h 中删除您需要的部分.根据您的需要,使用例如可能会更好与 wpa_supplicant 通信的 DBus 接口(如果这是您想要的).

You'd be probably better off just ripping out the parts from wpa_ctrl.h you need. Depending on what you need it might be even better to use e.g. the DBus interface to communicate with wpa_supplicant (if that's what you want).

这篇关于在 C 代码中包含 wpa_ctrl.h的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆