1 /*
2  * %CopyrightBegin%
3  *
4  * Copyright Ericsson AB 2010-2017. All Rights Reserved.
5  *
6  * The contents of this file are subject to the Erlang Public License,
7  * Version 1.1, (the "License"); you may not use this file except in
8  * compliance with the License. You should have received a copy of the
9  * Erlang Public License along with this software. If not, it can be
10  * retrieved online at http://www.erlang.org/.
11  *
12  * Software distributed under the License is distributed on an "AS IS"
13  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
14  * the License for the specific language governing rights and limitations
15  * under the License.
16  *
17  * %CopyrightEnd%
18  */
19 
20 /*
21  * Common structures for both erl_driver.h and erl_nif.h
22  */
23 
24 #ifndef __ERL_DRV_NIF_H__
25 #define __ERL_DRV_NIF_H__
26 
27 typedef struct {
28     int driver_major_version;
29     int driver_minor_version;
30     char *erts_version;
31     char *otp_release;
32     int thread_support;
33     int smp_support;
34     int async_threads;
35     int scheduler_threads;
36     int nif_major_version;
37     int nif_minor_version;
38 }  ErlDrvSysInfo;
39 
40 typedef struct {
41     int suggested_stack_size;
42 } ErlDrvThreadOpts;
43 
44 #endif  /* __ERL_DRV_NIF_H__ */
45 
46 
47 
48 
49