mirror of
				https://git.kernel.org/pub/scm/network/wireless/iwd.git
				synced 2025-10-30 12:07:23 +01:00 
			
		
		
		
	client: Allow command registration
This commit is contained in:
		
							parent
							
								
									db679448bc
								
							
						
					
					
						commit
						4fc6a3038a
					
				| @ -30,6 +30,16 @@ | ||||
| 
 | ||||
| static struct l_queue *command_families; | ||||
| 
 | ||||
| void command_family_register(const struct command_family *family) | ||||
| { | ||||
| 	l_queue_push_tail(command_families, (void *) family); | ||||
| } | ||||
| 
 | ||||
| void command_family_unregister(const struct command_family *family) | ||||
| { | ||||
| 	l_queue_remove(command_families, (void *) family); | ||||
| } | ||||
| 
 | ||||
| void command_init(void) | ||||
| { | ||||
| 	command_families = l_queue_new(); | ||||
|  | ||||
| @ -20,5 +20,12 @@ | ||||
|  * | ||||
|  */ | ||||
| 
 | ||||
| struct command_family { | ||||
| 	const char *name; | ||||
| }; | ||||
| 
 | ||||
| void command_family_register(const struct command_family *family); | ||||
| void command_family_unregister(const struct command_family *family); | ||||
| 
 | ||||
| void command_init(void); | ||||
| void command_exit(void); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Tim Kourt
						Tim Kourt