github.com/goccy/go-jit@v0.0.0-20200514131505-ff78d45cf6af/internal/ccall/include/jit/jit-meta.h (about)

     1  /*
     2   * jit-meta.h - Manipulate lists of metadata values.
     3   *
     4   * Copyright (C) 2004  Southern Storm Software, Pty Ltd.
     5   *
     6   * The libjit library is free software: you can redistribute it and/or
     7   * modify it under the terms of the GNU Lesser General Public License
     8   * as published by the Free Software Foundation, either version 2.1 of
     9   * the License, or (at your option) any later version.
    10   *
    11   * The libjit library 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 GNU
    14   * Lesser General Public License for more details.
    15   *
    16   * You should have received a copy of the GNU Lesser General Public
    17   * License along with the libjit library.  If not, see
    18   * <http://www.gnu.org/licenses/>.
    19   */
    20  
    21  #ifndef	_JIT_META_H
    22  #define	_JIT_META_H
    23  
    24  #include <jit/jit-common.h>
    25  
    26  #ifdef	__cplusplus
    27  extern	"C" {
    28  #endif
    29  
    30  typedef struct _jit_meta *jit_meta_t;
    31  
    32  int jit_meta_set
    33  	(jit_meta_t *list, int type, void *data,
    34  	 jit_meta_free_func free_data, jit_function_t pool_owner) JIT_NOTHROW;
    35  void *jit_meta_get(jit_meta_t list, int type) JIT_NOTHROW;
    36  void jit_meta_free(jit_meta_t *list, int type) JIT_NOTHROW;
    37  void jit_meta_destroy(jit_meta_t *list) JIT_NOTHROW;
    38  
    39  #ifdef	__cplusplus
    40  };
    41  #endif
    42  
    43  #endif /* _JIT_META_H */