You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

gvc-speaker-test.h 2.5 KiB

4 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
  2. *
  3. * Copyright (C) 2009 Red Hat, Inc.
  4. * Copyright (C) 2014 Michal Ratajsky <michal.ratajsky@gmail.com>
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
  19. *
  20. */
  21. #ifndef __GVC_SPEAKER_TEST_H
  22. #define __GVC_SPEAKER_TEST_H
  23. #include <glib.h>
  24. #include <glib-object.h>
  25. #include <gtk/gtk.h>
  26. #include <libmatemixer/matemixer.h>
  27. G_BEGIN_DECLS
  28. #define GVC_TYPE_SPEAKER_TEST (gvc_speaker_test_get_type ())
  29. #define GVC_SPEAKER_TEST(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GVC_TYPE_SPEAKER_TEST, GvcSpeakerTest))
  30. #define GVC_SPEAKER_TEST_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GVC_TYPE_SPEAKER_TEST, GvcSpeakerTestClass))
  31. #define GVC_IS_SPEAKER_TEST(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GVC_TYPE_SPEAKER_TEST))
  32. #define GVC_IS_SPEAKER_TEST_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GVC_TYPE_SPEAKER_TEST))
  33. #define GVC_SPEAKER_TEST_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GVC_TYPE_SPEAKER_TEST, GvcSpeakerTestClass))
  34. typedef struct _GvcSpeakerTest GvcSpeakerTest;
  35. typedef struct _GvcSpeakerTestClass GvcSpeakerTestClass;
  36. typedef struct _GvcSpeakerTestPrivate GvcSpeakerTestPrivate;
  37. struct _GvcSpeakerTest
  38. {
  39. #if GTK_CHECK_VERSION (3, 4, 0)
  40. GtkGrid parent;
  41. #else
  42. GtkTable parent;
  43. #endif
  44. GvcSpeakerTestPrivate *priv;
  45. };
  46. struct _GvcSpeakerTestClass
  47. {
  48. #if GTK_CHECK_VERSION (3, 4, 0)
  49. GtkGridClass parent_class;
  50. #else
  51. GtkTableClass parent_class;
  52. #endif
  53. };
  54. GType gvc_speaker_test_get_type (void) G_GNUC_CONST;
  55. GtkWidget * gvc_speaker_test_new (MateMixerStream *stream);
  56. MateMixerStream * gvc_speaker_test_get_stream (GvcSpeakerTest *test);
  57. G_END_DECLS
  58. #endif /* __GVC_SPEAKER_TEST_H */