~ubuntu-branches/ubuntu/trusty/gstreamer1.0/trusty

« back to all changes in this revision

Viewing changes to gst/gstpoll.c

  • Committer: Package Import Robot
  • Author(s): Sebastian Dröge
  • Date: 2012-08-08 18:12:33 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20120808181233-riejwxprfsxh1njl
Tags: 0.11.93-1
* New upstream release:
  + debian/libgstreamer.symbols:
    - Update symbols file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
547
547
 *
548
548
 * Returns: (transfer full): a new #GstPoll, or %NULL in case of an error.
549
549
 *     Free with gst_poll_free().
550
 
 *
551
 
 * Since: 0.10.18
552
550
 */
553
551
GstPoll *
554
552
gst_poll_new (gboolean controllable)
622
620
 *
623
621
 * Returns: (transfer full): a new #GstPoll, or %NULL in case of an error.
624
622
 *     Free with gst_poll_free().
625
 
 *
626
 
 * Since: 0.10.23
627
623
 */
628
624
GstPoll *
629
625
gst_poll_new_timer (void)
646
642
 * @set: (transfer full): a file descriptor set.
647
643
 *
648
644
 * Free a file descriptor set.
649
 
 *
650
 
 * Since: 0.10.18
651
645
 */
652
646
void
653
647
gst_poll_free (GstPoll * set)
689
683
 *
690
684
 * Get a GPollFD for the reading part of the control socket. This is useful when
691
685
 * integrating with a GSource and GMainLoop.
692
 
 *
693
 
 * Since: 0.10.32
694
686
 */
695
687
void
696
688
gst_poll_get_read_gpollfd (GstPoll * set, GPollFD * fd)
717
709
 *
718
710
 * Initializes @fd. Alternatively you can initialize it with
719
711
 * #GST_POLL_FD_INIT.
720
 
 *
721
 
 * Since: 0.10.18
722
712
 */
723
713
void
724
714
gst_poll_fd_init (GstPollFD * fd)
765
755
#endif
766
756
    MARK_REBUILD (set);
767
757
  } else {
768
 
    GST_WARNING ("%p: couldn't find fd !", set);
 
758
    GST_WARNING ("%p: fd already added !", set);
769
759
  }
770
760
 
771
761
  return TRUE;
779
769
 * Add a file descriptor to the file descriptor set.
780
770
 *
781
771
 * Returns: %TRUE if the file descriptor was successfully added to the set.
782
 
 *
783
 
 * Since: 0.10.18
784
772
 */
785
773
gboolean
786
774
gst_poll_add_fd (GstPoll * set, GstPollFD * fd)
808
796
 * Remove a file descriptor from the file descriptor set.
809
797
 *
810
798
 * Returns: %TRUE if the file descriptor was successfully removed from the set.
811
 
 *
812
 
 * Since: 0.10.18
813
799
 */
814
800
gboolean
815
801
gst_poll_remove_fd (GstPoll * set, GstPollFD * fd)
859
845
 * writability.
860
846
 *
861
847
 * Returns: %TRUE if the descriptor was successfully updated.
862
 
 *
863
 
 * Since: 0.10.18
864
848
 */
865
849
gboolean
866
850
gst_poll_fd_ctl_write (GstPoll * set, GstPollFD * fd, gboolean active)
940
924
 * readability.
941
925
 *
942
926
 * Returns: %TRUE if the descriptor was successfully updated.
943
 
 *
944
 
 * Since: 0.10.18
945
927
 */
946
928
gboolean
947
929
gst_poll_fd_ctl_read (GstPoll * set, GstPollFD * fd, gboolean active)
974
956
 * The reason why this is needed is because the underlying implementation
975
957
 * might not allow querying the fd more than once between calls to one of
976
958
 * the re-enabling operations.
977
 
 *
978
 
 * Since: 0.10.18
979
959
 */
980
960
void
981
961
gst_poll_fd_ignored (GstPoll * set, GstPollFD * fd)
1009
989
 * Check if @fd in @set has closed the connection.
1010
990
 *
1011
991
 * Returns: %TRUE if the connection was closed.
1012
 
 *
1013
 
 * Since: 0.10.18
1014
992
 */
1015
993
gboolean
1016
994
gst_poll_fd_has_closed (const GstPoll * set, GstPollFD * fd)
1054
1032
 * Check if @fd in @set has an error.
1055
1033
 *
1056
1034
 * Returns: %TRUE if the descriptor has an error.
1057
 
 *
1058
 
 * Since: 0.10.18
1059
1035
 */
1060
1036
gboolean
1061
1037
gst_poll_fd_has_error (const GstPoll * set, GstPollFD * fd)
1129
1105
 * Check if @fd in @set has data to be read.
1130
1106
 *
1131
1107
 * Returns: %TRUE if the descriptor has data to be read.
1132
 
 *
1133
 
 * Since: 0.10.18
1134
1108
 */
1135
1109
gboolean
1136
1110
gst_poll_fd_can_read (const GstPoll * set, GstPollFD * fd)
1158
1132
 * Check if @fd in @set can be used for writing.
1159
1133
 *
1160
1134
 * Returns: %TRUE if the descriptor can be used for writing.
1161
 
 *
1162
 
 * Since: 0.10.18
1163
1135
 */
1164
1136
gboolean
1165
1137
gst_poll_fd_can_write (const GstPoll * set, GstPollFD * fd)
1214
1186
 * Returns: The number of #GstPollFD in @set that have activity or 0 when no
1215
1187
 * activity was detected after @timeout. If an error occurs, -1 is returned
1216
1188
 * and errno is set.
1217
 
 *
1218
 
 * Since: 0.10.18
1219
1189
 */
1220
1190
gint
1221
1191
gst_poll_wait (GstPoll * set, GstClockTime timeout)
1470
1440
 * gst_poll_set_flushing().
1471
1441
 *
1472
1442
 * Returns: %TRUE if the controllability of @set could be updated.
1473
 
 *
1474
 
 * Since: 0.10.18
1475
1443
 */
1476
1444
gboolean
1477
1445
gst_poll_set_controllable (GstPoll * set, gboolean controllable)
1493
1461
 * used after adding or removing descriptors to @set.
1494
1462
 *
1495
1463
 * If @set is not controllable, then this call will have no effect.
1496
 
 *
1497
 
 * Since: 0.10.18
1498
1464
 */
1499
1465
void
1500
1466
gst_poll_restart (GstPoll * set)
1517
1483
 * to gst_poll_wait() will return -1, with errno set to EBUSY.
1518
1484
 *
1519
1485
 * Unsetting the flushing state will restore normal operation of @set.
1520
 
 *
1521
 
 * Since: 0.10.18
1522
1486
 */
1523
1487
void
1524
1488
gst_poll_set_flushing (GstPoll * set, gboolean flushing)
1553
1517
 *
1554
1518
 * Returns: %TRUE on success. %FALSE when @set is not controllable or when the
1555
1519
 * byte could not be written.
1556
 
 *
1557
 
 * Since: 0.10.23
1558
1520
 */
1559
1521
gboolean
1560
1522
gst_poll_write_control (GstPoll * set)
1579
1541
 *
1580
1542
 * Returns: %TRUE on success. %FALSE when @set is not controllable or when there
1581
1543
 * was no byte to read.
1582
 
 *
1583
 
 * Since: 0.10.23
1584
1544
 */
1585
1545
gboolean
1586
1546
gst_poll_read_control (GstPoll * set)