-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathprocfs_displays.h
More file actions
28 lines (21 loc) · 886 Bytes
/
procfs_displays.h
File metadata and controls
28 lines (21 loc) · 886 Bytes
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
/*
* MacFUSE-Based procfs
*/
#ifndef _PROCFS_DISPLAYS_H_
#define _PROCFS_DISPLAYS_H_
#include <IOKit/graphics/IOGraphicsLib.h>
#include <CoreFoundation/CoreFoundation.h>
extern "C" {
CGDisplayCount PROCFS_GetDisplayCount(void);
int PROCFS_GetInfoForDisplayAtIndex(unsigned int index, char *buf,
size_t *size);
int PROCFS_GetPNGForDisplayAtIndex(unsigned int index, CFMutableDataRef *data);
off_t PROCFS_GetPNGSizeForDisplayAtIndex(unsigned int index);
/* Declare deprecated functions */
void * CGDisplayBaseAddress ( CGDirectDisplayID display );
size_t CGDisplayBitsPerPixel ( CGDirectDisplayID display );
size_t CGDisplayBitsPerSample ( CGDirectDisplayID display );
size_t CGDisplaySamplesPerPixel ( CGDirectDisplayID display );
size_t CGDisplayBytesPerRow ( CGDirectDisplayID display );
} /* extern "C" */
#endif /* _PROCFS_DISPLAYS_H_ */