Remove camel_operation_cancel_fd().
authorMatthew Barnes <mbarnes@redhat.com>
Sat, 5 Nov 2011 04:22:33 +0000 (00:22 -0400)
committerMatthew Barnes <mbarnes@redhat.com>
Sat, 5 Nov 2011 04:37:26 +0000 (00:37 -0400)
Use g_cancellable_get_fd() instead.

camel/camel-operation.c
camel/camel-operation.h
docs/reference/camel/camel-sections.txt
docs/reference/camel/tmpl/camel-operation.sgml
docs/reference/camel/tmpl/camel-unused.sgml

index 129a7aa..e196aa6 100644 (file)
@@ -284,25 +284,6 @@ camel_operation_cancel_check (CamelOperation *operation)
 }
 
 /**
- * camel_operation_cancel_fd:
- * @operation: a #CamelOperation
- *
- * Retrieve a file descriptor that can be waited on (select, or poll)
- * for read, to asynchronously detect cancellation.
- *
- * Returns: The fd, or -1 if cancellation has not been registered
- * for this thread.
- **/
-gint
-camel_operation_cancel_fd (CamelOperation *operation)
-{
-       if (operation == NULL)
-               return -1;
-
-       return g_cancellable_get_fd (G_CANCELLABLE (operation));
-}
-
-/**
  * camel_operation_push_message:
  * @cancellable: a #GCancellable or %NULL
  * @format: a standard printf() format string
index f133da6..fdc3d78 100644 (file)
@@ -73,7 +73,6 @@ void          camel_operation_uncancel        (CamelOperation *operation);
 
 /* called internally by camel, for the current thread */
 gboolean       camel_operation_cancel_check    (CamelOperation *operation);
-gint           camel_operation_cancel_fd       (CamelOperation *operation);
 
 /* Since Camel methods pass around GCancellable pointers instead of
  * CamelOperation pointers, it's more convenient to callers to take
index aaeef68..199c65e 100644 (file)
@@ -1735,7 +1735,6 @@ camel_operation_new
 camel_operation_cancel
 camel_operation_uncancel
 camel_operation_cancel_check
-camel_operation_cancel_fd
 camel_operation_push_message
 camel_operation_pop_message
 camel_operation_progress
index 3d19a8c..2af2ede 100644 (file)
@@ -62,15 +62,6 @@ camel-operation
 @Returns: 
 
 
-<!-- ##### FUNCTION camel_operation_cancel_fd ##### -->
-<para>
-
-</para>
-
-@operation: 
-@Returns: 
-
-
 <!-- ##### FUNCTION camel_operation_push_message ##### -->
 <para>
 
index c663652..4683294 100644 (file)
@@ -8375,6 +8375,14 @@ streams
 
 @cc: 
 
+<!-- ##### FUNCTION camel_operation_cancel_fd ##### -->
+<para>
+
+</para>
+
+@operation: 
+@Returns: 
+
 <!-- ##### FUNCTION camel_operation_cancel_prfd ##### -->
 <para>