browser/extensions/mortar/ppapi/generators/test_cgen/enum_typedef.h
author Sylvestre Ledru <sledru@mozilla.com>
Thu, 17 Aug 2017 11:13:01 +0200
changeset 648192 c236dfe7dc98c387219d7cb45d0693560db708fd
parent 451598 5956d0c8b4f054352ae88ecee7fb4fc7708f5959
permissions -rw-r--r--
indent all (with js specific coding style) MozReview-Commit-ID: LU1md2wyB8

/*
 * Copyright (c) 2011 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

/* From test_cgen/enum_typedef.idl modified Wed Dec  5 13:08:05 2012. */

#ifndef PPAPI_C_TEST_CGEN_ENUM_TYPEDEF_H_
#define PPAPI_C_TEST_CGEN_ENUM_TYPEDEF_H_

#include "ppapi/c/pp_macros.h"
#include "ppapi/c/test_cgen/stdint.h"

/**
 * @file
 * This file will test that the IDL snippet matches the comment.
 */

/**
 * @addtogroup Enums
 * @{
 */
/* typedef enum { A = 1, B = 2, C = 3, D = A + B, E = ~D } et1; */
typedef enum { A = 1, B = 2, C = 3, D = A + B, E = ~D } et1;
/**
 * @}
 */

/**
 * @addtogroup Typedefs
 * @{
 */
/* typedef int32_t i; */
typedef int32_t i;

/* typedef int32_t i2[3]; */
typedef int32_t i2[3];

/* typedef int32_t (*i_func)(void); */
typedef int32_t (*i_func)(void);

/* typedef int32_t (*i_func_i)(int32_t i); */
typedef int32_t (*i_func_i)(int32_t i);

/* typedef et1 et4[4]; */
typedef et1 et4[4];

/*
 * typedef int8_t (*PPB_Audio_Callback)(const void* sample_buffer,
 *                                   uint32_t buffer_size_in_bytes,
 *                                   const void* user_data);
 */
typedef int8_t (*PPB_Audio_Callback)(const void* sample_buffer,
                                     uint32_t buffer_size_in_bytes,
                                     const void* user_data);
/**
 * @}
 */

#endif /* PPAPI_C_TEST_CGEN_ENUM_TYPEDEF_H_ */