diff libpurple/protocols/myspace/markup.c @ 19435:bddc6a6fddf0

In msimprpl, move user-related code to a new user module, and move other pieces of code into their proper modules. Now myspace.c isn't so unwieldy.
author Jeffrey Connelly <jaconnel@calpoly.edu>
date Sun, 26 Aug 2007 07:37:28 +0000
parents 1e00b684c46f
children 11c727b19201
line wrap: on
line diff
--- a/libpurple/protocols/myspace/markup.c	Sun Aug 26 06:51:17 2007 +0000
+++ b/libpurple/protocols/myspace/markup.c	Sun Aug 26 07:37:28 2007 +0000
@@ -19,6 +19,8 @@
 
 #include "myspace.h"
 
+typedef void (*MSIM_XMLNODE_CONVERT)(MsimSession *, xmlnode *, gchar **, gchar **);
+
 /* Internal functions */
 
 static guint msim_point_to_purple_size(MsimSession *session, guint point);
@@ -98,6 +100,21 @@
 #define MAX_FONT_SIZE                   7       /* Purple maximum font size */
 #define POINTS_PER_INCH                 72      /* How many pt's in an inch */
 
+/* Text formatting bits for <f s=#> */
+#define MSIM_TEXT_BOLD                  1
+#define MSIM_TEXT_ITALIC                2   
+#define MSIM_TEXT_UNDERLINE             4
+
+/* Default baseline size of purple's fonts, in points. What is size 3 in points. 
+ * _font_scale specifies scaling factor relative to this point size. Note this 
+ * is only the default; it is configurable in account options. */
+#define MSIM_BASE_FONT_POINT_SIZE       8
+
+/* Default display's DPI. 96 is common but it can differ. Also configurable
+ * in account options. */
+#define MSIM_DEFAULT_DPI                96
+
+
 /* round is part of C99, but sometimes is unavailable before then.
  * Based on http://forums.belution.com/en/cpp/000/050/13.shtml
  */