mirror of
				https://gitlab.freedesktop.org/wayland/wayland.git
				synced 2025-11-03 09:01:42 -05:00 
			
		
		
		
	utils: const-ify some function arguments
This commit is contained in:
		
							parent
							
								
									db19b443cc
								
							
						
					
					
						commit
						4e9892478b
					
				
					 2 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
					@ -55,7 +55,7 @@ wl_list_remove(struct wl_list *elm)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
WL_EXPORT int
 | 
					WL_EXPORT int
 | 
				
			||||||
wl_list_length(struct wl_list *list)
 | 
					wl_list_length(const struct wl_list *list)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct wl_list *e;
 | 
						struct wl_list *e;
 | 
				
			||||||
	int count;
 | 
						int count;
 | 
				
			||||||
| 
						 | 
					@ -71,7 +71,7 @@ wl_list_length(struct wl_list *list)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
WL_EXPORT int
 | 
					WL_EXPORT int
 | 
				
			||||||
wl_list_empty(struct wl_list *list)
 | 
					wl_list_empty(const struct wl_list *list)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	return list->next == list;
 | 
						return list->next == list;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -105,8 +105,8 @@ struct wl_list {
 | 
				
			||||||
void wl_list_init(struct wl_list *list);
 | 
					void wl_list_init(struct wl_list *list);
 | 
				
			||||||
void wl_list_insert(struct wl_list *list, struct wl_list *elm);
 | 
					void wl_list_insert(struct wl_list *list, struct wl_list *elm);
 | 
				
			||||||
void wl_list_remove(struct wl_list *elm);
 | 
					void wl_list_remove(struct wl_list *elm);
 | 
				
			||||||
int wl_list_length(struct wl_list *list);
 | 
					int wl_list_length(const struct wl_list *list);
 | 
				
			||||||
int wl_list_empty(struct wl_list *list);
 | 
					int wl_list_empty(const struct wl_list *list);
 | 
				
			||||||
void wl_list_insert_list(struct wl_list *list, struct wl_list *other);
 | 
					void wl_list_insert_list(struct wl_list *list, struct wl_list *other);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef __GNUC__
 | 
					#ifdef __GNUC__
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue