Revision f87b1b37 libavformat/avio.h

View differences:

libavformat/avio.h
63 63
    int events;
64 64
    int revents;
65 65
} URLPollEntry;
66
#endif
67 66

  
68 67
/**
69 68
 * @defgroup open_modes URL open modes
......
91 90
 * silently ignored.
92 91
 */
93 92
#define URL_FLAG_NONBLOCK 4
93
#endif
94 94

  
95 95
typedef int URLInterruptCB(void);
96 96

  
......
512 512
#endif
513 513

  
514 514
/**
515
 * @defgroup open_modes URL open modes
516
 * The flags argument to avio_open must be one of the following
517
 * constants, optionally ORed with other flags.
518
 * @{
519
 */
520
#define AVIO_RDONLY 0  /**< read-only */
521
#define AVIO_WRONLY 1  /**< write-only */
522
#define AVIO_RDWR   2  /**< read-write */
523
/**
524
 * @}
525
 */
526

  
527
/**
528
 * Use non-blocking mode.
529
 * If this flag is set, operations on the context will return
530
 * AVERROR(EAGAIN) if they can not be performed immediately.
531
 * If this flag is not set, operations on the context will never return
532
 * AVERROR(EAGAIN).
533
 * Note that this flag does not affect the opening/connecting of the
534
 * context. Connecting a protocol will always block if necessary (e.g. on
535
 * network protocols) but never hang (e.g. on busy devices).
536
 * Warning: non-blocking protocols is work-in-progress; this flag may be
537
 * silently ignored.
538
 */
539
#define AVIO_FLAG_NONBLOCK 4
540

  
541
/**
515 542
 * Create and initialize a AVIOContext for accessing the
516 543
 * resource indicated by url.
517 544
 * @note When the resource indicated by url has been opened in

Also available in: Unified diff