libpurple/buddyicon.h

changeset 37406
98ec68212b1f
parent 37134
07746c9a04bf
child 39659
e4dfb99b0cef
--- a/libpurple/buddyicon.h	Wed Dec 09 20:11:47 2015 -0800
+++ b/libpurple/buddyicon.h	Wed Dec 09 22:29:06 2015 -0800
@@ -51,6 +51,18 @@
 #include "util.h"
 
 /**
+ * PurpleBuddyIconScaleFlags:
+ * @PURPLE_ICON_SCALE_DISPLAY: We scale the icon when we display it
+ * @PURPLE_ICON_SCALE_SEND:    We scale the icon before we send it to the server
+ */
+typedef enum  /*< flags >*/
+{
+	PURPLE_ICON_SCALE_DISPLAY = 0x01,
+	PURPLE_ICON_SCALE_SEND    = 0x02
+
+} PurpleBuddyIconScaleFlags;
+
+/**
  * PurpleBuddyIconSpec:
  * @format: This is a comma-delimited list of image formats or %NULL if icons
  *          are not supported.  Neither the core nor the protocol will actually
@@ -75,7 +87,7 @@
 	int max_width;
 	int max_height;
 	size_t max_filesize;
-	PurpleIconScaleRules scale_rules;
+	PurpleBuddyIconScaleFlags scale_rules;
 };
 
 G_BEGIN_DECLS
@@ -482,7 +494,7 @@
  */
 PurpleBuddyIconSpec *purple_buddy_icon_spec_new(char *format, int min_width,
 		int min_height, int max_width, int max_height, size_t max_filesize,
-		PurpleIconScaleRules scale_rules);
+		PurpleBuddyIconScaleFlags scale_rules);
 
 /**
  * purple_buddy_icon_spec_get_scaled_size:

mercurial