comparison libpurple/core.h @ 16341:786edf5e2144

The core portion of the migration code. This is implemented as I described in my e-mail a while back. If we have ~/.gaim and not ~/.purple (or we have ~/.purple, but the "migrating" file exists, indicating an incomplete previous migration), we copy all the files from ~/.gaim to ~/.purple and move and symlink directories, except for plugins and icons. For icons, we move and symlink any subdirectories, as a special case for the Album plugin (written by me). For this to work, it needs to be called by the UIs. Also, the icon migration code is not included in this commit, so I highly recommend you not test this on your main .gaim directory if you want a clean migration.
author Richard Laager <rlaager@wiktel.com>
date Mon, 23 Apr 2007 16:57:12 +0000
parents 7517e6289bc9
children 516f14bef90e
comparison
equal deleted inserted replaced
16326:08557e94840c 16341:786edf5e2144
104 * 104 *
105 * @return The core's UI ops structure. 105 * @return The core's UI ops structure.
106 */ 106 */
107 PurpleCoreUiOps *purple_core_get_ui_ops(void); 107 PurpleCoreUiOps *purple_core_get_ui_ops(void);
108 108
109 /**
110 * Migrates from .gaim to .purple.
111 *
112 * UIs MUST NOT call this if they have been told to use a custom
113 * user directory.
114 *
115 * @return A boolean indicating success or migration failure. On failure,
116 * the application must display an error to the user and then exit.
117 */
118 gboolean purple_core_migrate(void);
119
109 #ifdef __cplusplus 120 #ifdef __cplusplus
110 } 121 }
111 #endif 122 #endif
112 123
113 #endif /* _PURPLE_CORE_H_ */ 124 #endif /* _PURPLE_CORE_H_ */