File: linkfile.h

package info (click to toggle)
intel-media-driver 23.1.1%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 146,180 kB
  • sloc: cpp: 1,508,381; ansic: 205,392; asm: 45,336; python: 653; sh: 177; makefile: 16
file content (35 lines) | stat: -rw-r--r-- 956 bytes parent folder | download | duplicates (10)
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
#ifndef __LINKFILE_H__
#define __LINKFILE_H__

#include <list>

using namespace std;

#define MAX_STRING_SIZE  4096

#pragma pack(4)
#define LINKFILE_VERSION 0x00010000
typedef struct tagLinkFileHeader
{
    unsigned int    dwVersion;
    unsigned int    dwSize;
    unsigned int    dwImports;
    unsigned int    dwExports;
} LinkFileHeader;

typedef struct tagLinkData
{
    unsigned int    dwKernelID    : 16;     // Kernel ID
    unsigned int    dwLabelID     : 16;     // Label ID
    unsigned int    bExport       : 1;      // 0 - import; 1 - export;
    unsigned int    bResolved     : 1;      // MBZ
    unsigned int    dwOffset      : 20;     // Offset in DWORDs
    unsigned int    bInline       : 1;      // 0 - none; 1 - inline;
    unsigned int                  : 9;      // MBZ
} LinkData;
#pragma pack()

void CreateLinkFile(char *pDirectoryName, list <string> &kernels);
void DeleteLinkFile(char *pDirectoryName);

#endif // __LINKFILE_H__