Since both api.c and protocol.c need to include protocol.h anyway,
we can consistently keep all #includes in protocol.h.
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <glib.h>
-#include "libsigrok.h"
-#include "libsigrok-internal.h"
#include "protocol.h"
SR_PRIV struct sr_dev_driver ${lib}_driver_info;
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <stdlib.h>
-#include <glib.h>
-#include "libsigrok.h"
-#include "libsigrok-internal.h"
#include "protocol.h"
SR_PRIV int ${lib}_receive_data(int fd, int revents, void *cb_data)
#define LIBSIGROK_HARDWARE_${upper}_PROTOCOL_H
#include <stdint.h>
+#include <glib.h>
#include "libsigrok.h"
#include "libsigrok-internal.h"