This file is indexed.

/usr/include/synthesis/admindata.h is in libsynthesis-dev 3.4.0.47.5-0ubuntu3~gcc5.2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/*
 *  File:    admindata.h
 *
 *  Author:  Beat Forster (bfo@synthesis.ch)
 *
 *
 *  DBApi database adapter
 *  Admin data handling
 *
 *  Copyright (c) 2005-2011 by Synthesis AG + plan44.ch
 *
 *  E X A M P L E    C O D E
 *    (text_db interface)
 *
 */

#ifndef ADMINDATA_H
#define ADMINDATA_H

#include "synthesis/sync_include.h"     // import global things
#include "synthesis/sync_dbapidef.h"    // get some definitions
#include "synthesis/SDK_util.h"         // include SDK utilities
#include "synthesis/dbitem.h"
#include <string>


namespace sysync {


class TAdminData {
  public:
    void      Init( void* aCB, cAppCharP aDBName, string aAdminPath,
                                                  string aContextName,
                                                  string sDevKey,
                                                  string sUsrKey );

    TSyError  LoadAdminData     ( string  aLocDB,
                                  string  aRemDB,
                                appCharP *adminData );
    TSyError  SaveAdminData  ( cAppCharP  adminData );

    bool      ReadNextMapItem(  MapID mID, bool aFirst );
    TSyError    InsertMapItem( cMapID mID );
    TSyError    UpdateMapItem( cMapID mID );
    TSyError    DeleteMapItem( cMapID mID );

  private:
    void      ResetMapCounter();
    TSyError  GetMapItem     ( cMapID mID, TDBItem* &act );
    TSyError  UpdMapItem     ( cMapID mID, TDBItem*  act );

    string    MapID_Flag_Str ( cMapID mID, bool asHex= false );
    string    MapID_Str      ( cMapID mID );

    void*     fCB;         // callback structure, for debug logs
    string    fDBName;     // database name,      for debug logs
    cAppCharP myDB;        // fDBName.c_str()

    string    fMapPath;
    string    fContextName;
    string    fDevKey;
    string    fUsrKey;

    TDBItem   fAdmList;    // admin structure
    TDBItem*  fAdm;        // admin item
    TDBItem   fMapList;    // map   structure
    TDBItem*  fMap;        // map   item
}; // TAdminData


} /* namespace */
#endif /* ADMINDATA_H */
/* eof */