Blame src/w32-lock-obj.h

Packit fc043f
/* w32-lock-obj.h - Declaration of the Windows lock object
Packit fc043f
   Copyright (C) 2014 g10 Code GmbH
Packit fc043f
Packit fc043f
   This file is part of libgpg-error.
Packit fc043f
Packit fc043f
   libgpg-error is free software; you can redistribute it and/or
Packit fc043f
   modify it under the terms of the GNU Lesser General Public License
Packit fc043f
   as published by the Free Software Foundation; either version 2.1 of
Packit fc043f
   the License, or (at your option) any later version.
Packit fc043f
Packit fc043f
   libgpg-error is distributed in the hope that it will be useful, but
Packit fc043f
   WITHOUT ANY WARRANTY; without even the implied warranty of
Packit fc043f
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit fc043f
   Lesser General Public License for more details.
Packit fc043f
Packit fc043f
   You should have received a copy of the GNU Lesser General Public
Packit fc043f
   License along with this program; if not, see <https://www.gnu.org/licenses/>.
Packit fc043f
 */
Packit fc043f
Packit fc043f
#ifndef W32_LOCK_OBJ_H
Packit fc043f
#define W32_LOCK_OBJ_H
Packit fc043f
Packit fc043f
#define LOCK_ABI_VERSION 1
Packit fc043f
Packit fc043f
/* The real definition of our lock object.  The public definition is
Packit fc043f
   named gpgrt_lock_t and hides this internal structure.  */
Packit fc043f
#pragma pack(push, 8)
Packit fc043f
typedef struct
Packit fc043f
{
Packit fc043f
  long vers;
Packit fc043f
  volatile long initdone;
Packit fc043f
  volatile long started;
Packit fc043f
  CRITICAL_SECTION csec;
Packit fc043f
} _gpgrt_lock_t;
Packit fc043f
#pragma pack(pop)
Packit fc043f
Packit fc043f
Packit fc043f
#endif /*W32_LOCK_OBJ_H*/