sl@0: // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: // General sl@0: #define ELogEnable 1 sl@0: #define ELogDisable 0 sl@0: #define ELogUnique 1 sl@0: #define ELogUndefined -1 sl@0: sl@0: STRUCT CONFIG sl@0: { sl@0: WORD size; sl@0: BYTE recent; sl@0: LONG age; sl@0: } sl@0: sl@0: sl@0: // Used for definition of capabilities in logwrap.rss sl@0: // There may be a maximum of 7 CAPABILITIES defined per operation in logwrap.rss because sl@0: // 7 is the max number of TCapability(s) that can be used to instantiate a TSecurityPolicy. sl@0: // sl@0: STRUCT CAPABILITY sl@0: { sl@0: LONG cap; sl@0: } sl@0: sl@0: // used to define a security policy in logwrap.rss. Each SECURITY sl@0: // struct defines the capabilities required to read/write log events sl@0: // of the type specified by 'uid'. These entries will be used as sl@0: // constructor arguments to a TSecurityPolicy. sl@0: // Note that SID-based security isn't supported in the Log Engine. sl@0: // sl@0: STRUCT SECURITY sl@0: { sl@0: LONG uid; sl@0: STRUCT read_caps[]; sl@0: STRUCT write_caps[]; sl@0: } sl@0: sl@0: STRUCT ETYPE sl@0: { sl@0: LONG uid; sl@0: LTEXT description; sl@0: BYTE enabled = ELogEnable; sl@0: } sl@0: sl@0: ENUM {EAsc,EDesc}; sl@0: sl@0: STRUCT KEY sl@0: { sl@0: LTEXT col; sl@0: WORD order = EAsc; sl@0: WORD len = ELogUndefined; sl@0: } sl@0: sl@0: ENUM { EDbCompareNormal, EDbCompareFolded, EDbCompareCollated }; sl@0: sl@0: STRUCT INDEX sl@0: { sl@0: LTEXT name; sl@0: LTEXT table; sl@0: STRUCT keys[]; sl@0: BYTE unique = 0; sl@0: BYTE compare = EDbCompareNormal; sl@0: } sl@0: sl@0: STRUCT RECENT sl@0: { sl@0: BYTE id; sl@0: WORD duplicate = 0; sl@0: STRUCT conditions[]; sl@0: } sl@0: sl@0: STRUCT MATCH sl@0: { sl@0: WORD field; sl@0: LTEXT string = ""; sl@0: LONG value = 0; sl@0: }