gstdatetime.inc 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. {* GStreamer
  2. * Copyright (C) 2010 Thiago Santos <[email protected]>
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Library General Public
  6. * License as published by the Free Software Foundation; either
  7. * version 2 of the License, or (at your option) any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * Library General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Library General Public
  15. * License along with this library; if not, write to the
  16. * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
  17. * Boston, MA 02110-1301, USA.
  18. *}
  19. Type
  20. PGDateTime = ^TGDateTime;
  21. PGstDateTime = ^TGstDateTime;
  22. PPGstDateTime = ^PGstDateTime;
  23. PGstDateTime_autoptr = ^TGstDateTime_autoptr;
  24. PGstDateTime_listautoptr = ^TGstDateTime_listautoptr;
  25. PGstDateTime_queueautoptr = ^TGstDateTime_queueautoptr;
  26. PGstDateTime_slistautoptr = ^TGstDateTime_slistautoptr;
  27. {$IFDEF FPC}
  28. {$PACKRECORDS C}
  29. {$ENDIF}
  30. TGstDateTime_autoptr = PGstDateTime;
  31. TGstDateTime_listautoptr = PGList;
  32. TGstDateTime_slistautoptr = PGSList;
  33. TGstDateTime_queueautoptr = PGQueue;
  34. TGstDateTime = record end;
  35. T_GstDateTime = TGstDateTime;
  36. var
  37. _gst_date_time_type : TGType;cvar;external;
  38. function gst_date_time_get_type:TGType;cdecl;external gstreamerlib name 'gst_date_time_get_type';
  39. (* Const before type ignored *)
  40. function gst_date_time_has_year(datetime:PGstDateTime):Tgboolean;cdecl;external gstreamerlib name 'gst_date_time_has_year';
  41. (* Const before type ignored *)
  42. function gst_date_time_has_month(datetime:PGstDateTime):Tgboolean;cdecl;external gstreamerlib name 'gst_date_time_has_month';
  43. (* Const before type ignored *)
  44. function gst_date_time_has_day(datetime:PGstDateTime):Tgboolean;cdecl;external gstreamerlib name 'gst_date_time_has_day';
  45. (* Const before type ignored *)
  46. function gst_date_time_has_time(datetime:PGstDateTime):Tgboolean;cdecl;external gstreamerlib name 'gst_date_time_has_time';
  47. (* Const before type ignored *)
  48. function gst_date_time_has_second(datetime:PGstDateTime):Tgboolean;cdecl;external gstreamerlib name 'gst_date_time_has_second';
  49. (* Const before type ignored *)
  50. function gst_date_time_get_year(datetime:PGstDateTime):Tgint;cdecl;external gstreamerlib name 'gst_date_time_get_year';
  51. (* Const before type ignored *)
  52. function gst_date_time_get_month(datetime:PGstDateTime):Tgint;cdecl;external gstreamerlib name 'gst_date_time_get_month';
  53. (* Const before type ignored *)
  54. function gst_date_time_get_day(datetime:PGstDateTime):Tgint;cdecl;external gstreamerlib name 'gst_date_time_get_day';
  55. (* Const before type ignored *)
  56. function gst_date_time_get_hour(datetime:PGstDateTime):Tgint;cdecl;external gstreamerlib name 'gst_date_time_get_hour';
  57. (* Const before type ignored *)
  58. function gst_date_time_get_minute(datetime:PGstDateTime):Tgint;cdecl;external gstreamerlib name 'gst_date_time_get_minute';
  59. (* Const before type ignored *)
  60. function gst_date_time_get_second(datetime:PGstDateTime):Tgint;cdecl;external gstreamerlib name 'gst_date_time_get_second';
  61. (* Const before type ignored *)
  62. function gst_date_time_get_microsecond(datetime:PGstDateTime):Tgint;cdecl;external gstreamerlib name 'gst_date_time_get_microsecond';
  63. (* Const before type ignored *)
  64. function gst_date_time_get_time_zone_offset(datetime:PGstDateTime):Tgfloat;cdecl;external gstreamerlib name 'gst_date_time_get_time_zone_offset';
  65. function gst_date_time_new_from_unix_epoch_local_time(secs:Tgint64):PGstDateTime;cdecl;external gstreamerlib name 'gst_date_time_new_from_unix_epoch_local_time';
  66. function gst_date_time_new_from_unix_epoch_utc(secs:Tgint64):PGstDateTime;cdecl;external gstreamerlib name 'gst_date_time_new_from_unix_epoch_utc';
  67. function gst_date_time_new_local_time(year:Tgint; month:Tgint; day:Tgint; hour:Tgint; minute:Tgint;
  68. seconds:Tgdouble):PGstDateTime;cdecl;external gstreamerlib name 'gst_date_time_new_local_time';
  69. function gst_date_time_new_y(year:Tgint):PGstDateTime;cdecl;external gstreamerlib name 'gst_date_time_new_y';
  70. function gst_date_time_new_ym(year:Tgint; month:Tgint):PGstDateTime;cdecl;external gstreamerlib name 'gst_date_time_new_ym';
  71. function gst_date_time_new_ymd(year:Tgint; month:Tgint; day:Tgint):PGstDateTime;cdecl;external gstreamerlib name 'gst_date_time_new_ymd';
  72. function gst_date_time_new(tzoffset:Tgfloat; year:Tgint; month:Tgint; day:Tgint; hour:Tgint;
  73. minute:Tgint; seconds:Tgdouble):PGstDateTime;cdecl;external gstreamerlib name 'gst_date_time_new';
  74. function gst_date_time_new_now_local_time:PGstDateTime;cdecl;external gstreamerlib name 'gst_date_time_new_now_local_time';
  75. function gst_date_time_new_now_utc:PGstDateTime;cdecl;external gstreamerlib name 'gst_date_time_new_now_utc';
  76. function gst_date_time_to_iso8601_string(datetime:PGstDateTime):Pgchar;cdecl;external gstreamerlib name 'gst_date_time_to_iso8601_string';
  77. (* Const before type ignored *)
  78. function gst_date_time_new_from_iso8601_string(_string:Pgchar):PGstDateTime;cdecl;external gstreamerlib name 'gst_date_time_new_from_iso8601_string';
  79. function gst_date_time_to_g_date_time(datetime:PGstDateTime):PGDateTime;cdecl;external gstreamerlib name 'gst_date_time_to_g_date_time';
  80. function gst_date_time_new_from_g_date_time(dt:PGDateTime):PGstDateTime;cdecl;external gstreamerlib name 'gst_date_time_new_from_g_date_time';
  81. function gst_date_time_ref(datetime:PGstDateTime):PGstDateTime;cdecl;external gstreamerlib name 'gst_date_time_ref';
  82. procedure gst_date_time_unref(datetime:PGstDateTime);cdecl;external gstreamerlib name 'gst_date_time_unref';