Pack Actions type into struct actions
This commit is contained in:
		
							parent
							
								
									a4ebf4f4e6
								
							
						
					
					
						commit
						8010f83286
					
				| @ -135,7 +135,7 @@ static notification *dbus_message_to_notification(const gchar *sender, GVariant | ||||
| 
 | ||||
|         notification *n = notification_create(); | ||||
| 
 | ||||
|         n->actions = g_malloc0(sizeof(Actions)); | ||||
|         n->actions = g_malloc0(sizeof(struct actions)); | ||||
|         n->dbus_client = g_strdup(sender); | ||||
| 
 | ||||
|         { | ||||
|  | ||||
| @ -186,7 +186,7 @@ int notification_is_duplicate(const notification *a, const notification *b) | ||||
| } | ||||
| 
 | ||||
| /* see notification.h */ | ||||
| void actions_free(Actions *a) | ||||
| void actions_free(struct actions *a) | ||||
| { | ||||
|         if (!a) | ||||
|                 return; | ||||
|  | ||||
| @ -36,11 +36,11 @@ typedef struct _raw_image { | ||||
|         unsigned char *data; | ||||
| } RawImage; | ||||
| 
 | ||||
| typedef struct _actions { | ||||
| struct actions { | ||||
|         char **actions; | ||||
|         char *dmenu_str; | ||||
|         gsize count; | ||||
| } Actions; | ||||
| }; | ||||
| 
 | ||||
| typedef struct _notification { | ||||
|         int id; | ||||
| @ -59,7 +59,7 @@ typedef struct _notification { | ||||
|         gint64 timestamp;  /**< arrival time */ | ||||
|         gint64 timeout;    /**< time to display */ | ||||
| 
 | ||||
|         Actions *actions; | ||||
|         struct actions *actions; | ||||
| 
 | ||||
|         enum markup_mode markup; | ||||
|         const char *format; | ||||
| @ -106,9 +106,9 @@ void notification_init(notification *n); | ||||
| /**
 | ||||
|  * Free the actions structure | ||||
|  * | ||||
|  * @param a (nullable): Pointer to #Actions | ||||
|  * @param a (nullable): Pointer to #actions | ||||
|  */ | ||||
| void actions_free(Actions *a); | ||||
| void actions_free(struct actions *a); | ||||
| 
 | ||||
| /**
 | ||||
|  * Free a #RawImage | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Benedikt Heine
						Benedikt Heine