libpurple/protocols/jabber/usermood.c

changeset 41967
025eee9e6f1d
parent 40634
4d3018b00ad4
--- a/libpurple/protocols/jabber/usermood.c	Mon Dec 12 23:38:47 2022 -0600
+++ b/libpurple/protocols/jabber/usermood.c	Mon Dec 12 23:41:40 2022 -0600
@@ -30,92 +30,92 @@
 #include <string.h>
 
 static PurpleMood moods[] = {
-	{"afraid", N_("Afraid"), },
-	{"amazed", N_("Amazed"), },
-	{"amorous", N_("Amorous"), },
-	{"angry", N_("Angry"), },
-	{"annoyed", N_("Annoyed"), },
-	{"anxious", N_("Anxious"), },
-	{"aroused", N_("Aroused"), },
-	{"ashamed", N_("Ashamed"), },
-	{"bored", N_("Bored"), },
-	{"brave", N_("Brave"), },
-	{"calm", N_("Calm"), },
-	{"cautious", N_("Cautious"), },
-	{"cold", N_("Cold"), },
-	{"confident", N_("Confident"), },
-	{"confused", N_("Confused"), },
-	{"contemplative", N_("Contemplative"), },
-	{"contented", N_("Contented"), },
-	{"cranky", N_("Cranky"), },
-	{"crazy", N_("Crazy"), },
-	{"creative", N_("Creative"), },
-	{"curious", N_("Curious"), },
-	{"dejected", N_("Dejected"), },
-	{"depressed", N_("Depressed"), },
-	{"disappointed", N_("Disappointed"), },
-	{"disgusted", N_("Disgusted"), },
-	{"dismayed", N_("Dismayed"), },
-	{"distracted", N_("Distracted"), },
-	{"embarrassed", N_("Embarrassed"), },
-	{"envious", N_("Envious"), },
-	{"excited", N_("Excited"), },
-	{"flirtatious", N_("Flirtatious"), },
-	{"frustrated", N_("Frustrated"), },
-	{"grateful", N_("Grateful"), },
-	{"grieving", N_("Grieving"), },
-	{"grumpy", N_("Grumpy"), },
-	{"guilty", N_("Guilty"), },
-	{"happy", N_("Happy"), },
-	{"hopeful", N_("Hopeful"), },
-	{"hot", N_("Hot"), },
-	{"humbled", N_("Humbled"), },
-	{"humiliated", N_("Humiliated"), },
-	{"hungry", N_("Hungry"), },
-	{"hurt", N_("Hurt"), },
-	{"impressed", N_("Impressed"), },
-	{"in_awe", N_("In awe"), },
-	{"in_love", N_("In love"), },
-	{"indignant", N_("Indignant"), },
-	{"interested", N_("Interested"), },
-	{"intoxicated", N_("Intoxicated"), },
-	{"invincible", N_("Invincible"), },
-	{"jealous", N_("Jealous"), },
-	{"lonely", N_("Lonely"), },
-	{"lost", N_("Lost"), },
-	{"lucky", N_("Lucky"), },
-	{"mean", N_("Mean"), },
-	{"moody", N_("Moody"), },
-	{"nervous", N_("Nervous"), },
-	{"neutral", N_("Neutral"), },
-	{"offended", N_("Offended"), },
-	{"outraged", N_("Outraged"), },
-	{"playful", N_("Playful"), },
-	{"proud", N_("Proud"), },
-	{"relaxed", N_("Relaxed"), },
-	{"relieved", N_("Relieved"), },
-	{"remorseful", N_("Remorseful"), },
-	{"restless", N_("Restless"), },
-	{"sad", N_("Sad"), },
-	{"sarcastic", N_("Sarcastic"), },
-	{"satisfied", N_("Satisfied"), },
-	{"serious", N_("Serious"), },
-	{"shocked", N_("Shocked"), },
-	{"shy", N_("Shy"), },
-	{"sick", N_("Sick"), },
-	{"sleepy", N_("Sleepy"), },
-	{"spontaneous", N_("Spontaneous"), },
-	{"stressed", N_("Stressed"), },
-	{"strong", N_("Strong"), },
-	{"surprised", N_("Surprised"), },
-	{"thankful", N_("Thankful"), },
-	{"thirsty", N_("Thirsty"), },
-	{"tired", N_("Tired"), },
-	{"undefined", N_("Undefined"), },
-	{"weak", N_("Weak"), },
-	{"worried", N_("Worried"), },
+	{ .mood = "afraid", .description = N_("Afraid"), },
+	{ .mood = "amazed", .description = N_("Amazed"), },
+	{ .mood = "amorous", .description = N_("Amorous"), },
+	{ .mood = "angry", .description = N_("Angry"), },
+	{ .mood = "annoyed", .description = N_("Annoyed"), },
+	{ .mood = "anxious", .description = N_("Anxious"), },
+	{ .mood = "aroused", .description = N_("Aroused"), },
+	{ .mood = "ashamed", .description = N_("Ashamed"), },
+	{ .mood = "bored", .description = N_("Bored"), },
+	{ .mood = "brave", .description = N_("Brave"), },
+	{ .mood = "calm", .description = N_("Calm"), },
+	{ .mood = "cautious", .description = N_("Cautious"), },
+	{ .mood = "cold", .description = N_("Cold"), },
+	{ .mood = "confident", .description = N_("Confident"), },
+	{ .mood = "confused", .description = N_("Confused"), },
+	{ .mood = "contemplative", .description = N_("Contemplative"), },
+	{ .mood = "contented", .description = N_("Contented"), },
+	{ .mood = "cranky", .description = N_("Cranky"), },
+	{ .mood = "crazy", .description = N_("Crazy"), },
+	{ .mood = "creative", .description = N_("Creative"), },
+	{ .mood = "curious", .description = N_("Curious"), },
+	{ .mood = "dejected", .description = N_("Dejected"), },
+	{ .mood = "depressed", .description = N_("Depressed"), },
+	{ .mood = "disappointed", .description = N_("Disappointed"), },
+	{ .mood = "disgusted", .description = N_("Disgusted"), },
+	{ .mood = "dismayed", .description = N_("Dismayed"), },
+	{ .mood = "distracted", .description = N_("Distracted"), },
+	{ .mood = "embarrassed", .description = N_("Embarrassed"), },
+	{ .mood = "envious", .description = N_("Envious"), },
+	{ .mood = "excited", .description = N_("Excited"), },
+	{ .mood = "flirtatious", .description = N_("Flirtatious"), },
+	{ .mood = "frustrated", .description = N_("Frustrated"), },
+	{ .mood = "grateful", .description = N_("Grateful"), },
+	{ .mood = "grieving", .description = N_("Grieving"), },
+	{ .mood = "grumpy", .description = N_("Grumpy"), },
+	{ .mood = "guilty", .description = N_("Guilty"), },
+	{ .mood = "happy", .description = N_("Happy"), },
+	{ .mood = "hopeful", .description = N_("Hopeful"), },
+	{ .mood = "hot", .description = N_("Hot"), },
+	{ .mood = "humbled", .description = N_("Humbled"), },
+	{ .mood = "humiliated", .description = N_("Humiliated"), },
+	{ .mood = "hungry", .description = N_("Hungry"), },
+	{ .mood = "hurt", .description = N_("Hurt"), },
+	{ .mood = "impressed", .description = N_("Impressed"), },
+	{ .mood = "in_awe", .description = N_("In awe"), },
+	{ .mood = "in_love", .description = N_("In love"), },
+	{ .mood = "indignant", .description = N_("Indignant"), },
+	{ .mood = "interested", .description = N_("Interested"), },
+	{ .mood = "intoxicated", .description = N_("Intoxicated"), },
+	{ .mood = "invincible", .description = N_("Invincible"), },
+	{ .mood = "jealous", .description = N_("Jealous"), },
+	{ .mood = "lonely", .description = N_("Lonely"), },
+	{ .mood = "lost", .description = N_("Lost"), },
+	{ .mood = "lucky", .description = N_("Lucky"), },
+	{ .mood = "mean", .description = N_("Mean"), },
+	{ .mood = "moody", .description = N_("Moody"), },
+	{ .mood = "nervous", .description = N_("Nervous"), },
+	{ .mood = "neutral", .description = N_("Neutral"), },
+	{ .mood = "offended", .description = N_("Offended"), },
+	{ .mood = "outraged", .description = N_("Outraged"), },
+	{ .mood = "playful", .description = N_("Playful"), },
+	{ .mood = "proud", .description = N_("Proud"), },
+	{ .mood = "relaxed", .description = N_("Relaxed"), },
+	{ .mood = "relieved", .description = N_("Relieved"), },
+	{ .mood = "remorseful", .description = N_("Remorseful"), },
+	{ .mood = "restless", .description = N_("Restless"), },
+	{ .mood = "sad", .description = N_("Sad"), },
+	{ .mood = "sarcastic", .description = N_("Sarcastic"), },
+	{ .mood = "satisfied", .description = N_("Satisfied"), },
+	{ .mood = "serious", .description = N_("Serious"), },
+	{ .mood = "shocked", .description = N_("Shocked"), },
+	{ .mood = "shy", .description = N_("Shy"), },
+	{ .mood = "sick", .description = N_("Sick"), },
+	{ .mood = "sleepy", .description = N_("Sleepy"), },
+	{ .mood = "spontaneous", .description = N_("Spontaneous"), },
+	{ .mood = "stressed", .description = N_("Stressed"), },
+	{ .mood = "strong", .description = N_("Strong"), },
+	{ .mood = "surprised", .description = N_("Surprised"), },
+	{ .mood = "thankful", .description = N_("Thankful"), },
+	{ .mood = "thirsty", .description = N_("Thirsty"), },
+	{ .mood = "tired", .description = N_("Tired"), },
+	{ .mood = "undefined", .description = N_("Undefined"), },
+	{ .mood = "weak", .description = N_("Weak"), },
+	{ .mood = "worried", .description = N_("Worried"), },
 	/* Mark last record. */
-	{NULL, }
+	{ .mood = NULL, .description = NULL, }
 };
 
 static const PurpleMood*
@@ -219,6 +219,8 @@
 }
 
 PurpleMood *
-jabber_get_moods(PurpleProtocolClient *client, PurpleAccount *account) {
+jabber_get_moods(G_GNUC_UNUSED PurpleProtocolClient *client,
+                 G_GNUC_UNUSED PurpleAccount *account)
+{
 	return moods;
 }

mercurial