GrlMediaType GrlTypeFilter redundancy



I just noticed that GrlMediaType and GrlTypeFilter have the same functionality.
Is there any sense for that or would it not be better to have only one type.

Reagrds,
Roland

/**
 * GrlTypeFilter:
 * @GRL_TYPE_FILTER_NONE: no type filtering
 * @GRL_TYPE_FILTER_AUDIO: allow audio content
 * @GRL_TYPE_FILTER_VIDEO: allow video content
 * @GRL_TYPE_FILTER_IMAGE: allow image content
 *
 * Type of media to allow.
 **/
typedef enum {
  GRL_TYPE_FILTER_NONE = 0,
  GRL_TYPE_FILTER_AUDIO = (1 << 0),
  GRL_TYPE_FILTER_VIDEO = (1 << 1),
  GRL_TYPE_FILTER_IMAGE = (1 << 2),
  GRL_TYPE_FILTER_ALL = (GRL_TYPE_FILTER_AUDIO | GRL_TYPE_FILTER_VIDEO | GRL_TYPE_FILTER_IMAGE)
} GrlTypeFilter;


/**
 * GrlMediaType:
 * @GRL_MEDIA_TYPE_NONE: no media
 * @GRL_MEDIA_TYPE_AUDIO: audio media
 * @GRL_MEDIA_TYPE_VIDEO: video media
 * @GRL_MEDIA_TYPE_IMAGE: image media
 * @GRL_MEDIA_TYPE_ALL: any media
 */
typedef enum {
  GRL_MEDIA_TYPE_NONE  = 0,
  GRL_MEDIA_TYPE_AUDIO = (1 << 0),
  GRL_MEDIA_TYPE_VIDEO = (1 << 1),
  GRL_MEDIA_TYPE_IMAGE = (1 << 2),
  GRL_MEDIA_TYPE_ALL   = (GRL_MEDIA_TYPE_AUDIO | GRL_MEDIA_TYPE_VIDEO | GRL_MEDIA_TYPE_IMAGE)
} GrlMediaType;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]