mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	SPDX tags make the licensing information easy to understand and clear, and they are machine parseable. See https://spdx.dev for more information.
		
			
				
	
	
		
			18 lines
		
	
	
	
		
			510 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
	
		
			510 B
		
	
	
	
		
			C
		
	
	
	
	
	
/* PipeWire */
 | 
						|
/* SPDX-FileCopyrightText: Copyright © 2021 Wim Taymans */
 | 
						|
/* SPDX-License-Identifier: MIT */
 | 
						|
 | 
						|
#include <errno.h>
 | 
						|
#include <fcntl.h>
 | 
						|
 | 
						|
struct fops {
 | 
						|
	int (*openat)(int dirfd, const char *path, int oflag, mode_t mode);
 | 
						|
	int (*dup)(int oldfd);
 | 
						|
	int (*close)(int fd);
 | 
						|
	int (*ioctl)(int fd, unsigned long request, void *arg);
 | 
						|
	void *(*mmap)(void *addr, size_t length, int prot,
 | 
						|
			int flags, int fd, off64_t offset);
 | 
						|
	int (*munmap)(void *addr, size_t length);
 | 
						|
};
 | 
						|
 | 
						|
const struct fops *get_fops(void);
 |