mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	
							parent
							
								
									b57b87abbb
								
							
						
					
					
						commit
						a6199c92a4
					
				
					 1 changed files with 9 additions and 0 deletions
				
			
		| 
						 | 
					@ -351,6 +351,15 @@ static struct node *find_node(struct graph *graph, const char *name)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	return NULL;
 | 
						return NULL;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					#if !defined(strdupa)
 | 
				
			||||||
 | 
					# define strdupa(s)                                                                   \
 | 
				
			||||||
 | 
					        ({                                                                            \
 | 
				
			||||||
 | 
					                const char *__old = (s);                                              \
 | 
				
			||||||
 | 
					                size_t __len = strlen(__old) + 1;                                     \
 | 
				
			||||||
 | 
					                char *__new = (char *) alloca(__len);                                 \
 | 
				
			||||||
 | 
					                (char *) memcpy(__new, __old, __len);                                 \
 | 
				
			||||||
 | 
					        })
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* find a port by name. Valid syntax is:
 | 
					/* find a port by name. Valid syntax is:
 | 
				
			||||||
 *  "<node_name>:<port_name>"
 | 
					 *  "<node_name>:<port_name>"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue