libpurple/request.h

branch
soc.2013.gobjectification
changeset 34956
1efbfacf93ee
parent 34451
b7165d4e1d73
child 34478
be28ca093028
child 34494
eee5ad689415
child 35024
eb3afb7643ce
child 36783
8eadcfdb65ca
--- a/libpurple/request.h	Sat Sep 21 16:41:50 2013 +0530
+++ b/libpurple/request.h	Sat Sep 21 21:36:51 2013 +0530
@@ -423,6 +423,27 @@
 GSList *
 purple_request_cpar_get_extra_actions(PurpleRequestCommonParameters *cpar);
 
+/**
+ * Sets the same parent window for this dialog, as the parent of specified
+ * Notify API or Request API dialog UI handle.
+ *
+ * @param cpar      The parameters set.
+ * @param ui_handle The UI handle.
+ */
+void
+purple_request_cpar_set_parent_from(PurpleRequestCommonParameters *cpar,
+	gpointer ui_handle);
+
+/**
+ * Gets the parent "donor" for this dialog.
+ *
+ * @param cpar The parameters set (may be @c NULL).
+ *
+ * @return The donors UI handle.
+ */
+gpointer
+purple_request_cpar_get_parent_from(PurpleRequestCommonParameters *cpar);
+
 /*@}*/
 
 /**************************************************************************/
@@ -1845,6 +1866,18 @@
 	void *user_data);
 
 /**
+ * Checks, if passed UI handle is valid.
+ *
+ * @param ui_handle The UI handle.
+ * @param type      The pointer to variable, where request type may be stored
+ *                  (may be @c NULL).
+ *
+ * @return TRUE, if handle is valid, FALSE otherwise.
+ */
+gboolean
+purple_request_is_valid_ui_handle(void *ui_handle, PurpleRequestType *type);
+
+/**
  * Closes a request.
  *
  * @param type     The request type.

mercurial