mirror of
				https://git.haproxy.org/git/haproxy.git/
				synced 2025-11-04 02:21:03 +01:00 
			
		
		
		
	MINOR: guid: add guid_get() helper
guid_get() is a convenient function to get the actual key string associated to a given guid_node struct
This commit is contained in:
		
							parent
							
								
									3759172015
								
							
						
					
					
						commit
						7c52964591
					
				@ -12,6 +12,14 @@ int guid_insert(enum obj_type *obj_type, const char *uid, char **errmsg);
 | 
				
			|||||||
void guid_remove(struct guid_node *guid);
 | 
					void guid_remove(struct guid_node *guid);
 | 
				
			||||||
struct guid_node *guid_lookup(const char *uid);
 | 
					struct guid_node *guid_lookup(const char *uid);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/* Returns the actual text key associated to <guid> node or NULL if not
 | 
				
			||||||
 | 
					 * set
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					static inline const char *guid_get(const struct guid_node *guid)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						return guid->node.key;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int guid_is_valid_fmt(const char *uid, char **errmsg);
 | 
					int guid_is_valid_fmt(const char *uid, char **errmsg);
 | 
				
			||||||
char *guid_name(const struct guid_node *guid);
 | 
					char *guid_name(const struct guid_node *guid);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user