libsigrok
0.5.2
sigrok hardware access and backend library
Main Page
Modules
Data Structures
Files
File List
Globals
src
driver_list_start.c
Go to the documentation of this file.
1
/*
2
* This file is part of the libsigrok project.
3
*
4
* Copyright (C) 2017 Marcus Comstedt <marcus@mc.pp.se>
5
*
6
* This program is free software: you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation, either version 3 of the License, or
9
* (at your option) any later version.
10
*
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with this program. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
20
#include <config.h>
21
#include <glib.h>
22
#include <
libsigrok/libsigrok.h
>
23
#include "libsigrok-internal.h"
24
25
/*
26
* This marks the start of the driver list. This file must be linked
27
* before any actual drivers.
28
*/
29
30
SR_PRIV
const
struct
sr_dev_driver
*sr_driver_list__start[]
31
__attribute__
((section (SR_DRIVER_LIST_SECTION),
32
used, aligned(
sizeof
(
struct
sr_dev_driver
*))))
33
= { NULL
/* Dummy item, as zero length arrays are not allowed by C99 */
};
libsigrok.h
The public libsigrok header file to be used by frontends.
SR_PRIV
#define SR_PRIV
Definition:
libsigrok.h:128
sr_dev_driver
Device driver data.
Definition:
libsigrok.h:1138
__attribute__
SR_PRIV const struct sr_dev_driver *sr_driver_list__start[] __attribute__((section(SR_DRIVER_LIST_SECTION), used, aligned(sizeof(struct sr_dev_driver *))))
Generated on Sun Apr 6 2025 16:16:32 for libsigrok by
1.8.10