VirtualBox

source: kBuild/trunk/src/kmk/kmkbuiltin/kbuild_protection.h@ 2012

Last change on this file since 2012 was 2001, checked in by bird, 16 years ago

kmk: pedantic warnings.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1/* $Id: kbuild_protection.h 2001 2008-10-29 22:14:48Z bird $ */
2/** @file
3 * Simple File Protection.
4 */
5
6/*
7 * Copyright (c) 2008 knut st. osmundsen <[email protected]>
8 *
9 * This file is part of kBuild.
10 *
11 * kBuild is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
15 *
16 * kBuild is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with kBuild; if not, write to the Free Software
23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
24 *
25 */
26
27#ifndef ___kbuild_protection_h___
28#define ___kbuild_protection_h___
29
30/**
31 * The different protection types.
32 */
33typedef enum
34{
35 KBUILDPROTECTIONTYPE_FIRST = 0,
36 KBUILDPROTECTIONTYPE_RECURSIVE = KBUILDPROTECTIONTYPE_FIRST,
37 KBUILDPROTECTIONTYPE_FULL,
38 KBUILDPROTECTIONTYPE_MAX
39} KBUILDPROTECTIONTYPE;
40
41
42/**
43 * The instance data.
44 * Don't touch.
45 */
46typedef struct KBUILDPROTECTION
47{
48 unsigned int uMagic;
49 unsigned int cProtectionDepth;
50 unsigned char afTypes[KBUILDPROTECTIONTYPE_MAX];
51} KBUILDPROTECTION;
52typedef KBUILDPROTECTION *PKBUILDPROTECTION;
53typedef const KBUILDPROTECTION *PCKBUILDPROTECTION;
54
55
56void kBuildProtectionInit(PKBUILDPROTECTION pThis);
57void kBuildProtectionTerm(PKBUILDPROTECTION pThis);
58int kBuildProtectionScanEnv(PKBUILDPROTECTION pThis, char **papszEnv, const char *pszPrefix);
59void kBuildProtectionEnable(PKBUILDPROTECTION pThis, KBUILDPROTECTIONTYPE enmType);
60void kBuildProtectionDisable(PKBUILDPROTECTION pThis, KBUILDPROTECTIONTYPE enmType);
61int kBuildProtectionSetDepth(PKBUILDPROTECTION pThis, const char *pszValue);
62int kBuildProtectionEnforce(PCKBUILDPROTECTION pThis, KBUILDPROTECTIONTYPE enmType, const char *pszPath);
63int kBuildProtectionDefaultDepth(void);
64
65#endif
66
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette