rbcdio 0.03 → 0.04

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  /* ----------------------------------------------------------------------------
2
2
  * This file was automatically generated by SWIG (http://www.swig.org).
3
- * Version 1.3.33
3
+ * Version 1.3.36
4
4
  *
5
5
  * This file is not intended to be easily readable and contains a number of
6
6
  * coding conventions designed to improve portability and efficiency. Do not make
@@ -51,6 +51,12 @@
51
51
  # endif
52
52
  #endif
53
53
 
54
+ #ifndef SWIG_MSC_UNSUPPRESS_4505
55
+ # if defined(_MSC_VER)
56
+ # pragma warning(disable : 4505) /* unreferenced local function has been removed */
57
+ # endif
58
+ #endif
59
+
54
60
  #ifndef SWIGUNUSEDPARM
55
61
  # ifdef __cplusplus
56
62
  # define SWIGUNUSEDPARM(p)
@@ -154,6 +160,12 @@
154
160
  # endif
155
161
  #endif
156
162
 
163
+ #ifndef SWIG_MSC_UNSUPPRESS_4505
164
+ # if defined(_MSC_VER)
165
+ # pragma warning(disable : 4505) /* unreferenced local function has been removed */
166
+ # endif
167
+ #endif
168
+
157
169
  #ifndef SWIGUNUSEDPARM
158
170
  # ifdef __cplusplus
159
171
  # define SWIGUNUSEDPARM(p)
@@ -224,7 +236,7 @@
224
236
 
225
237
  /* This should only be incremented when either the layout of swig_type_info changes,
226
238
  or for whatever reason, the runtime changes incompatibly */
227
- #define SWIG_RUNTIME_VERSION "3"
239
+ #define SWIG_RUNTIME_VERSION "4"
228
240
 
229
241
  /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
230
242
  #ifdef SWIG_TYPE_TABLE
@@ -259,6 +271,7 @@
259
271
 
260
272
  /* Flags for pointer conversions */
261
273
  #define SWIG_POINTER_DISOWN 0x1
274
+ #define SWIG_CAST_NEW_MEMORY 0x2
262
275
 
263
276
  /* Flags for new pointer objects */
264
277
  #define SWIG_POINTER_OWN 0x1
@@ -399,10 +412,10 @@ SWIGINTERNINLINE int SWIG_CheckState(int r) {
399
412
  extern "C" {
400
413
  #endif
401
414
 
402
- typedef void *(*swig_converter_func)(void *);
415
+ typedef void *(*swig_converter_func)(void *, int *);
403
416
  typedef struct swig_type_info *(*swig_dycast_func)(void **);
404
417
 
405
- /* Structure to store inforomation on one type */
418
+ /* Structure to store information on one type */
406
419
  typedef struct swig_type_info {
407
420
  const char *name; /* mangled name of this type */
408
421
  const char *str; /* human readable name of this type */
@@ -529,8 +542,8 @@ SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
529
542
  Cast a pointer up an inheritance hierarchy
530
543
  */
531
544
  SWIGRUNTIMEINLINE void *
532
- SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
533
- return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
545
+ SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
546
+ return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
534
547
  }
535
548
 
536
549
  /*
@@ -840,12 +853,44 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
840
853
  #ifndef RSTRING_PTR
841
854
  # define RSTRING_PTR(x) RSTRING(x)->ptr
842
855
  #endif
856
+ #ifndef RSTRING_END
857
+ # define RSTRING_END(x) (RSTRING_PTR(x) + RSTRING_LEN(x))
858
+ #endif
843
859
  #ifndef RARRAY_LEN
844
860
  # define RARRAY_LEN(x) RARRAY(x)->len
845
861
  #endif
846
862
  #ifndef RARRAY_PTR
847
863
  # define RARRAY_PTR(x) RARRAY(x)->ptr
848
864
  #endif
865
+ #ifndef RFLOAT_VALUE
866
+ # define RFLOAT_VALUE(x) RFLOAT(x)->value
867
+ #endif
868
+ #ifndef DOUBLE2NUM
869
+ # define DOUBLE2NUM(x) rb_float_new(x)
870
+ #endif
871
+ #ifndef RHASH_TBL
872
+ # define RHASH_TBL(x) (RHASH(x)->tbl)
873
+ #endif
874
+ #ifndef RHASH_ITER_LEV
875
+ # define RHASH_ITER_LEV(x) (RHASH(x)->iter_lev)
876
+ #endif
877
+ #ifndef RHASH_IFNONE
878
+ # define RHASH_IFNONE(x) (RHASH(x)->ifnone)
879
+ #endif
880
+ #ifndef RHASH_SIZE
881
+ # define RHASH_SIZE(x) (RHASH(x)->tbl->num_entries)
882
+ #endif
883
+ #ifndef RHASH_EMPTY_P
884
+ # define RHASH_EMPTY_P(x) (RHASH_SIZE(x) == 0)
885
+ #endif
886
+ #ifndef RSTRUCT_LEN
887
+ # define RSTRUCT_LEN(x) RSTRUCT(x)->len
888
+ #endif
889
+ #ifndef RSTRUCT_PTR
890
+ # define RSTRUCT_PTR(x) RSTRUCT(x)->ptr
891
+ #endif
892
+
893
+
849
894
 
850
895
  /*
851
896
  * Need to be very careful about how these macros are defined, especially
@@ -1321,6 +1366,7 @@ SWIG_Ruby_AppendOutput(VALUE target, VALUE o) {
1321
1366
  #define SWIG_MangleStr(value) SWIG_Ruby_MangleStr(value)
1322
1367
  #define SWIG_CheckConvert(value, ty) SWIG_Ruby_CheckConvert(value, ty)
1323
1368
 
1369
+ #include "assert.h"
1324
1370
 
1325
1371
  /* -----------------------------------------------------------------------------
1326
1372
  * pointers/data manipulation
@@ -1582,8 +1628,11 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
1582
1628
  tc = SWIG_TypeCheck(c, ty);
1583
1629
  if (!tc) {
1584
1630
  return SWIG_ERROR;
1631
+ } else {
1632
+ int newmemory = 0;
1633
+ *ptr = SWIG_TypeCast(tc, vptr, &newmemory);
1634
+ assert(!newmemory); /* newmemory handling not yet implemented */
1585
1635
  }
1586
- *ptr = SWIG_TypeCast(tc, vptr);
1587
1636
  } else {
1588
1637
  *ptr = vptr;
1589
1638
  }
@@ -1718,13 +1767,15 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
1718
1767
  #define SWIGTYPE_p_HWInfo_t swig_types[2]
1719
1768
  #define SWIGTYPE_p_cdio_hwinfo_t swig_types[3]
1720
1769
  #define SWIGTYPE_p_cdio_read_mode_t swig_types[4]
1721
- #define SWIGTYPE_p_char swig_types[5]
1722
- #define SWIGTYPE_p_int swig_types[6]
1723
- #define SWIGTYPE_p_long swig_types[7]
1724
- #define SWIGTYPE_p_off_t swig_types[8]
1725
- #define SWIGTYPE_p_unsigned_int swig_types[9]
1726
- static swig_type_info *swig_types[11];
1727
- static swig_module_info swig_module = {swig_types, 10, 0, 0, 0, 0};
1770
+ #define SWIGTYPE_p_cdtext_t swig_types[5]
1771
+ #define SWIGTYPE_p_char swig_types[6]
1772
+ #define SWIGTYPE_p_int swig_types[7]
1773
+ #define SWIGTYPE_p_long swig_types[8]
1774
+ #define SWIGTYPE_p_off_t swig_types[9]
1775
+ #define SWIGTYPE_p_unsigned_int swig_types[10]
1776
+ #define SWIGTYPE_p_unsigned_long swig_types[11]
1777
+ static swig_type_info *swig_types[13];
1778
+ static swig_module_info swig_module = {swig_types, 12, 0, 0, 0, 0};
1728
1779
  #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1729
1780
  #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1730
1781
 
@@ -1739,7 +1790,7 @@ static VALUE mRubycdio;
1739
1790
  #define SWIG_RUBY_THREAD_END_BLOCK
1740
1791
 
1741
1792
 
1742
- #define SWIGVERSION 0x010333
1793
+ #define SWIGVERSION 0x010336
1743
1794
  #define SWIG_VERSION SWIGVERSION
1744
1795
 
1745
1796
 
@@ -2434,7 +2485,6 @@ _wrap_cdio_read_sectors(int argc, VALUE *argv, VALUE self) {
2434
2485
  lsn_t arg3 ;
2435
2486
  cdio_read_mode_t arg4 ;
2436
2487
  unsigned int arg5 ;
2437
- driver_return_code_t result;
2438
2488
  void *argp1 = 0 ;
2439
2489
  int res1 = 0 ;
2440
2490
  int res2 ;
@@ -2444,6 +2494,7 @@ _wrap_cdio_read_sectors(int argc, VALUE *argv, VALUE self) {
2444
2494
  int ecode4 = 0 ;
2445
2495
  unsigned int val5 ;
2446
2496
  int ecode5 = 0 ;
2497
+ driver_return_code_t result;
2447
2498
  VALUE vresult = Qnil;
2448
2499
 
2449
2500
  if ((argc < 5) || (argc > 5)) {
@@ -2484,10 +2535,10 @@ fail:
2484
2535
  SWIGINTERN VALUE
2485
2536
  _wrap_cdio_eject_media_drive(int argc, VALUE *argv, VALUE self) {
2486
2537
  char *arg1 = (char *) 0 ;
2487
- driver_return_code_t result;
2488
2538
  int res1 ;
2489
2539
  char *buf1 = 0 ;
2490
2540
  int alloc1 = 0 ;
2541
+ driver_return_code_t result;
2491
2542
  VALUE vresult = Qnil;
2492
2543
 
2493
2544
  if ((argc < 1) || (argc > 1)) {
@@ -2522,9 +2573,9 @@ Pause playing CD through analog output..
2522
2573
  SWIGINTERN VALUE
2523
2574
  _wrap_audio_pause(int argc, VALUE *argv, VALUE self) {
2524
2575
  CdIo_t *arg1 = (CdIo_t *) 0 ;
2525
- driver_return_code_t result;
2526
2576
  void *argp1 = 0 ;
2527
2577
  int res1 = 0 ;
2578
+ driver_return_code_t result;
2528
2579
  VALUE vresult = Qnil;
2529
2580
 
2530
2581
  if ((argc < 1) || (argc > 1)) {
@@ -2559,13 +2610,13 @@ _wrap_audio_play_lsn(int argc, VALUE *argv, VALUE self) {
2559
2610
  CdIo_t *arg1 = (CdIo_t *) 0 ;
2560
2611
  lsn_t arg2 ;
2561
2612
  lsn_t arg3 ;
2562
- driver_return_code_t result;
2563
2613
  void *argp1 = 0 ;
2564
2614
  int res1 = 0 ;
2565
2615
  int val2 ;
2566
2616
  int ecode2 = 0 ;
2567
2617
  int val3 ;
2568
2618
  int ecode3 = 0 ;
2619
+ driver_return_code_t result;
2569
2620
  VALUE vresult = Qnil;
2570
2621
 
2571
2622
  if ((argc < 3) || (argc > 3)) {
@@ -2607,9 +2658,9 @@ Resume playing an audio CD..
2607
2658
  SWIGINTERN VALUE
2608
2659
  _wrap_audio_resume(int argc, VALUE *argv, VALUE self) {
2609
2660
  CdIo_t *arg1 = (CdIo_t *) 0 ;
2610
- driver_return_code_t result;
2611
2661
  void *argp1 = 0 ;
2612
2662
  int res1 = 0 ;
2663
+ driver_return_code_t result;
2613
2664
  VALUE vresult = Qnil;
2614
2665
 
2615
2666
  if ((argc < 1) || (argc > 1)) {
@@ -2641,9 +2692,9 @@ Stop playing an audio CD..
2641
2692
  SWIGINTERN VALUE
2642
2693
  _wrap_audio_stop(int argc, VALUE *argv, VALUE self) {
2643
2694
  CdIo_t *arg1 = (CdIo_t *) 0 ;
2644
- driver_return_code_t result;
2645
2695
  void *argp1 = 0 ;
2646
2696
  int res1 = 0 ;
2697
+ driver_return_code_t result;
2647
2698
  VALUE vresult = Qnil;
2648
2699
 
2649
2700
  if ((argc < 1) || (argc > 1)) {
@@ -2735,9 +2786,9 @@ fail:
2735
2786
  SWIGINTERN VALUE
2736
2787
  _wrap_Buf_triple_t_data_get(int argc, VALUE *argv, VALUE self) {
2737
2788
  Buf_triple_t *arg1 = (Buf_triple_t *) 0 ;
2738
- char *result = 0 ;
2739
2789
  void *argp1 = 0 ;
2740
2790
  int res1 = 0 ;
2791
+ char *result = 0 ;
2741
2792
  VALUE vresult = Qnil;
2742
2793
 
2743
2794
  if ((argc < 0) || (argc > 0)) {
@@ -2797,7 +2848,6 @@ _wrap_Buf_triple_t_size_set(int argc, VALUE *argv, VALUE self) {
2797
2848
  }
2798
2849
  arg2 = (size_t)(val2);
2799
2850
  if (arg1) (arg1)->size = arg2;
2800
-
2801
2851
  return Qnil;
2802
2852
  fail:
2803
2853
  return Qnil;
@@ -2807,9 +2857,9 @@ fail:
2807
2857
  SWIGINTERN VALUE
2808
2858
  _wrap_Buf_triple_t_size_get(int argc, VALUE *argv, VALUE self) {
2809
2859
  Buf_triple_t *arg1 = (Buf_triple_t *) 0 ;
2810
- size_t result;
2811
2860
  void *argp1 = 0 ;
2812
2861
  int res1 = 0 ;
2862
+ size_t result;
2813
2863
  VALUE vresult = Qnil;
2814
2864
 
2815
2865
  if ((argc < 0) || (argc > 0)) {
@@ -2871,7 +2921,6 @@ _wrap_Buf_triple_t_drc_set(int argc, VALUE *argv, VALUE self) {
2871
2921
  }
2872
2922
  arg2 = (driver_return_code_t)(val2);
2873
2923
  if (arg1) (arg1)->drc = arg2;
2874
-
2875
2924
  return Qnil;
2876
2925
  fail:
2877
2926
  return Qnil;
@@ -2881,9 +2930,9 @@ fail:
2881
2930
  SWIGINTERN VALUE
2882
2931
  _wrap_Buf_triple_t_drc_get(int argc, VALUE *argv, VALUE self) {
2883
2932
  Buf_triple_t *arg1 = (Buf_triple_t *) 0 ;
2884
- driver_return_code_t result;
2885
2933
  void *argp1 = 0 ;
2886
2934
  int res1 = 0 ;
2935
+ driver_return_code_t result;
2887
2936
  VALUE vresult = Qnil;
2888
2937
 
2889
2938
  if ((argc < 0) || (argc > 0)) {
@@ -2938,8 +2987,8 @@ _wrap_new_Buf_triple_t(int argc, VALUE *argv, VALUE self) {
2938
2987
  if ((argc < 0) || (argc > 0)) {
2939
2988
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
2940
2989
  }
2941
- result = (Buf_triple_t *)(Buf_triple_t *) calloc(1, sizeof(Buf_triple_t));DATA_PTR(self) = result;
2942
-
2990
+ result = (Buf_triple_t *)calloc(1, sizeof(Buf_triple_t));
2991
+ DATA_PTR(self) = result;
2943
2992
  return self;
2944
2993
  fail:
2945
2994
  return Qnil;
@@ -2966,13 +3015,13 @@ _wrap_lseek(int argc, VALUE *argv, VALUE self) {
2966
3015
  CdIo_t *arg1 = (CdIo_t *) 0 ;
2967
3016
  off_t arg2 ;
2968
3017
  int arg3 = (int) SEEK_SET ;
2969
- off_t result;
2970
3018
  void *argp1 = 0 ;
2971
3019
  int res1 = 0 ;
2972
3020
  void *argp2 ;
2973
3021
  int res2 = 0 ;
2974
3022
  int val3 ;
2975
3023
  int ecode3 = 0 ;
3024
+ off_t result;
2976
3025
  VALUE vresult = Qnil;
2977
3026
 
2978
3027
  if ((argc < 2) || (argc > 3)) {
@@ -3023,11 +3072,11 @@ SWIGINTERN VALUE
3023
3072
  _wrap_read_cd(int argc, VALUE *argv, VALUE self) {
3024
3073
  CdIo_t *arg1 = (CdIo_t *) 0 ;
3025
3074
  size_t arg2 ;
3026
- Buf_triple_t result;
3027
3075
  void *argp1 = 0 ;
3028
3076
  int res1 = 0 ;
3029
3077
  size_t val2 ;
3030
3078
  int ecode2 = 0 ;
3079
+ Buf_triple_t result;
3031
3080
  VALUE vresult = Qnil;
3032
3081
 
3033
3082
  if ((argc < 2) || (argc > 2)) {
@@ -3079,7 +3128,6 @@ _wrap_read_sectors(int argc, VALUE *argv, VALUE self) {
3079
3128
  lsn_t arg2 ;
3080
3129
  cdio_read_mode_t arg3 ;
3081
3130
  size_t arg4 ;
3082
- Buf_triple_t result;
3083
3131
  void *argp1 = 0 ;
3084
3132
  int res1 = 0 ;
3085
3133
  int val2 ;
@@ -3088,6 +3136,7 @@ _wrap_read_sectors(int argc, VALUE *argv, VALUE self) {
3088
3136
  int ecode3 = 0 ;
3089
3137
  size_t val4 ;
3090
3138
  int ecode4 = 0 ;
3139
+ Buf_triple_t result;
3091
3140
  VALUE vresult = Qnil;
3092
3141
 
3093
3142
  if ((argc < 4) || (argc > 4)) {
@@ -3149,7 +3198,6 @@ _wrap_read_data_bytes(int argc, VALUE *argv, VALUE self) {
3149
3198
  lsn_t arg2 ;
3150
3199
  int16_t arg3 ;
3151
3200
  size_t arg4 ;
3152
- Buf_triple_t result;
3153
3201
  void *argp1 = 0 ;
3154
3202
  int res1 = 0 ;
3155
3203
  int val2 ;
@@ -3158,6 +3206,7 @@ _wrap_read_data_bytes(int argc, VALUE *argv, VALUE self) {
3158
3206
  int ecode3 = 0 ;
3159
3207
  size_t val4 ;
3160
3208
  int ecode4 = 0 ;
3209
+ Buf_triple_t result;
3161
3210
  VALUE vresult = Qnil;
3162
3211
 
3163
3212
  if ((argc < 4) || (argc > 4)) {
@@ -3204,6 +3253,49 @@ fail:
3204
3253
 
3205
3254
 
3206
3255
 
3256
+ /*
3257
+ Document-method: Rubycdio.get_cdtext
3258
+
3259
+ call-seq:
3260
+ get_cdtext(p_cdio, i_track) -> cdtext_t
3261
+
3262
+ cdio_get_cdtext(track)->cdtext
3263
+ Get the CDText object for the given track number.
3264
+ Use track 0 for the disc's CDText object..
3265
+ */
3266
+ SWIGINTERN VALUE
3267
+ _wrap_get_cdtext(int argc, VALUE *argv, VALUE self) {
3268
+ CdIo_t *arg1 = (CdIo_t *) 0 ;
3269
+ track_t arg2 ;
3270
+ void *argp1 = 0 ;
3271
+ int res1 = 0 ;
3272
+ unsigned int val2 ;
3273
+ int ecode2 = 0 ;
3274
+ cdtext_t *result = 0 ;
3275
+ VALUE vresult = Qnil;
3276
+
3277
+ if ((argc < 2) || (argc > 2)) {
3278
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
3279
+ }
3280
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_CdIo_t, 0 | 0 );
3281
+ if (!SWIG_IsOK(res1)) {
3282
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CdIo_t *","cdio_get_cdtext", 1, argv[0] ));
3283
+ }
3284
+ arg1 = (CdIo_t *)(argp1);
3285
+ ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
3286
+ if (!SWIG_IsOK(ecode2)) {
3287
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "track_t","cdio_get_cdtext", 2, argv[1] ));
3288
+ }
3289
+ arg2 = (track_t)(val2);
3290
+ result = (cdtext_t *)cdio_get_cdtext(arg1,arg2);
3291
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_cdtext_t, 0 | 0 );
3292
+ return vresult;
3293
+ fail:
3294
+ return Qnil;
3295
+ }
3296
+
3297
+
3298
+
3207
3299
  /*
3208
3300
  Document-method: Rubycdio.get_first_track_num
3209
3301
 
@@ -3219,9 +3311,9 @@ a problem..
3219
3311
  SWIGINTERN VALUE
3220
3312
  _wrap_get_first_track_num(int argc, VALUE *argv, VALUE self) {
3221
3313
  CdIo_t *arg1 = (CdIo_t *) 0 ;
3222
- track_t result;
3223
3314
  void *argp1 = 0 ;
3224
3315
  int res1 = 0 ;
3316
+ track_t result;
3225
3317
  VALUE vresult = Qnil;
3226
3318
 
3227
3319
  if ((argc < 1) || (argc > 1)) {
@@ -3254,9 +3346,9 @@ pycdio.INVALID_TRACK is if there was a problem..
3254
3346
  SWIGINTERN VALUE
3255
3347
  _wrap_get_last_track_num(int argc, VALUE *argv, VALUE self) {
3256
3348
  CdIo_t *arg1 = (CdIo_t *) 0 ;
3257
- track_t result;
3258
3349
  void *argp1 = 0 ;
3259
3350
  int res1 = 0 ;
3351
+ track_t result;
3260
3352
  VALUE vresult = Qnil;
3261
3353
 
3262
3354
  if ((argc < 1) || (argc > 1)) {
@@ -3295,11 +3387,11 @@ SWIGINTERN VALUE
3295
3387
  _wrap_get_track(int argc, VALUE *argv, VALUE self) {
3296
3388
  CdIo_t *arg1 = (CdIo_t *) 0 ;
3297
3389
  lsn_t arg2 ;
3298
- track_t result;
3299
3390
  void *argp1 = 0 ;
3300
3391
  int res1 = 0 ;
3301
3392
  int val2 ;
3302
3393
  int ecode2 = 0 ;
3394
+ track_t result;
3303
3395
  VALUE vresult = Qnil;
3304
3396
 
3305
3397
  if ((argc < 2) || (argc > 2)) {
@@ -3339,11 +3431,11 @@ SWIGINTERN VALUE
3339
3431
  _wrap_get_track_channels(int argc, VALUE *argv, VALUE self) {
3340
3432
  CdIo_t *arg1 = (CdIo_t *) 0 ;
3341
3433
  track_t arg2 ;
3342
- int result;
3343
3434
  void *argp1 = 0 ;
3344
3435
  int res1 = 0 ;
3345
3436
  unsigned int val2 ;
3346
3437
  int ecode2 = 0 ;
3438
+ int result;
3347
3439
  VALUE vresult = Qnil;
3348
3440
 
3349
3441
  if ((argc < 2) || (argc > 2)) {
@@ -3384,11 +3476,11 @@ SWIGINTERN VALUE
3384
3476
  _wrap_track_copy_permitq___(int argc, VALUE *argv, VALUE self) {
3385
3477
  CdIo_t *arg1 = (CdIo_t *) 0 ;
3386
3478
  track_t arg2 ;
3387
- bool result;
3388
3479
  void *argp1 = 0 ;
3389
3480
  int res1 = 0 ;
3390
3481
  unsigned int val2 ;
3391
3482
  int ecode2 = 0 ;
3483
+ bool result;
3392
3484
  VALUE vresult = Qnil;
3393
3485
 
3394
3486
  if ((argc < 2) || (argc > 2)) {
@@ -3427,11 +3519,11 @@ SWIGINTERN VALUE
3427
3519
  _wrap_get_track_format(int argc, VALUE *argv, VALUE self) {
3428
3520
  CdIo_t *arg1 = (CdIo_t *) 0 ;
3429
3521
  track_t arg2 ;
3430
- char *result = 0 ;
3431
3522
  void *argp1 = 0 ;
3432
3523
  int res1 = 0 ;
3433
3524
  unsigned int val2 ;
3434
3525
  int ecode2 = 0 ;
3526
+ char *result = 0 ;
3435
3527
  VALUE vresult = Qnil;
3436
3528
 
3437
3529
  if ((argc < 2) || (argc > 2)) {
@@ -3475,11 +3567,11 @@ SWIGINTERN VALUE
3475
3567
  _wrap_track_greenq___(int argc, VALUE *argv, VALUE self) {
3476
3568
  CdIo_t *arg1 = (CdIo_t *) 0 ;
3477
3569
  track_t arg2 ;
3478
- bool result;
3479
3570
  void *argp1 = 0 ;
3480
3571
  int res1 = 0 ;
3481
3572
  unsigned int val2 ;
3482
3573
  int ecode2 = 0 ;
3574
+ bool result;
3483
3575
  VALUE vresult = Qnil;
3484
3576
 
3485
3577
  if ((argc < 2) || (argc > 2)) {
@@ -3519,11 +3611,11 @@ SWIGINTERN VALUE
3519
3611
  _wrap_get_track_last_lsn(int argc, VALUE *argv, VALUE self) {
3520
3612
  CdIo_t *arg1 = (CdIo_t *) 0 ;
3521
3613
  track_t arg2 ;
3522
- lsn_t result;
3523
3614
  void *argp1 = 0 ;
3524
3615
  int res1 = 0 ;
3525
3616
  unsigned int val2 ;
3526
3617
  int ecode2 = 0 ;
3618
+ lsn_t result;
3527
3619
  VALUE vresult = Qnil;
3528
3620
 
3529
3621
  if ((argc < 2) || (argc > 2)) {
@@ -3570,11 +3662,11 @@ SWIGINTERN VALUE
3570
3662
  _wrap_get_track_lba(int argc, VALUE *argv, VALUE self) {
3571
3663
  CdIo_t *arg1 = (CdIo_t *) 0 ;
3572
3664
  track_t arg2 ;
3573
- lba_t result;
3574
3665
  void *argp1 = 0 ;
3575
3666
  int res1 = 0 ;
3576
3667
  unsigned int val2 ;
3577
3668
  int ecode2 = 0 ;
3669
+ lba_t result;
3578
3670
  VALUE vresult = Qnil;
3579
3671
 
3580
3672
  if ((argc < 2) || (argc > 2)) {
@@ -3619,11 +3711,11 @@ SWIGINTERN VALUE
3619
3711
  _wrap_get_track_lsn(int argc, VALUE *argv, VALUE self) {
3620
3712
  CdIo_t *arg1 = (CdIo_t *) 0 ;
3621
3713
  track_t arg2 ;
3622
- lsn_t result;
3623
3714
  void *argp1 = 0 ;
3624
3715
  int res1 = 0 ;
3625
3716
  unsigned int val2 ;
3626
3717
  int ecode2 = 0 ;
3718
+ lsn_t result;
3627
3719
  VALUE vresult = Qnil;
3628
3720
 
3629
3721
  if ((argc < 2) || (argc > 2)) {
@@ -3669,11 +3761,11 @@ SWIGINTERN VALUE
3669
3761
  _wrap_get_track_msf(int argc, VALUE *argv, VALUE self) {
3670
3762
  CdIo_t *arg1 = (CdIo_t *) 0 ;
3671
3763
  track_t arg2 ;
3672
- char *result = 0 ;
3673
3764
  void *argp1 = 0 ;
3674
3765
  int res1 = 0 ;
3675
3766
  unsigned int val2 ;
3676
3767
  int ecode2 = 0 ;
3768
+ char *result = 0 ;
3677
3769
  VALUE vresult = Qnil;
3678
3770
 
3679
3771
  if ((argc < 2) || (argc > 2)) {
@@ -3713,11 +3805,11 @@ SWIGINTERN VALUE
3713
3805
  _wrap_get_track_preemphasis(int argc, VALUE *argv, VALUE self) {
3714
3806
  CdIo_t *arg1 = (CdIo_t *) 0 ;
3715
3807
  track_t arg2 ;
3716
- track_flag_t result;
3717
3808
  void *argp1 = 0 ;
3718
3809
  int res1 = 0 ;
3719
3810
  unsigned int val2 ;
3720
3811
  int ecode2 = 0 ;
3812
+ track_flag_t result;
3721
3813
  VALUE vresult = Qnil;
3722
3814
 
3723
3815
  if ((argc < 2) || (argc > 2)) {
@@ -3761,11 +3853,11 @@ SWIGINTERN VALUE
3761
3853
  _wrap_get_track_sec_count(int argc, VALUE *argv, VALUE self) {
3762
3854
  CdIo_t *arg1 = (CdIo_t *) 0 ;
3763
3855
  track_t arg2 ;
3764
- unsigned int result;
3765
3856
  void *argp1 = 0 ;
3766
3857
  int res1 = 0 ;
3767
3858
  unsigned int val2 ;
3768
3859
  int ecode2 = 0 ;
3860
+ unsigned int result;
3769
3861
  VALUE vresult = Qnil;
3770
3862
 
3771
3863
  if ((argc < 2) || (argc > 2)) {
@@ -3791,26 +3883,183 @@ fail:
3791
3883
 
3792
3884
 
3793
3885
  /*
3794
- Document-method: Rubycdio.close_tray
3886
+ Document-method: Rubycdio.cdtext_field2str
3795
3887
 
3796
3888
  call-seq:
3797
- close_tray(psz_drive, p_driver_id=DRIVER_UNKNOWN) -> driver_return_code_t
3889
+ cdtext_field2str(key) -> char
3798
3890
 
3799
- get_track_sec_count(cdio, track)->int
3891
+ cdtext_field2str(key)->string
3892
+ Get the name of the key..
3893
+ */
3894
+ SWIGINTERN VALUE
3895
+ _wrap_cdtext_field2str(int argc, VALUE *argv, VALUE self) {
3896
+ cdtext_field_t arg1 ;
3897
+ unsigned long val1 ;
3898
+ int ecode1 = 0 ;
3899
+ char *result = 0 ;
3900
+ VALUE vresult = Qnil;
3901
+
3902
+ if ((argc < 1) || (argc > 1)) {
3903
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
3904
+ }
3905
+ ecode1 = SWIG_AsVal_unsigned_SS_long(argv[0], &val1);
3906
+ if (!SWIG_IsOK(ecode1)) {
3907
+ SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "cdtext_field_t","cdtext_field2str", 1, argv[0] ));
3908
+ }
3909
+ arg1 = (cdtext_field_t)(val1);
3910
+ result = (char *)cdtext_field2str(arg1);
3911
+ vresult = SWIG_FromCharPtr((const char *)result);
3912
+ return vresult;
3913
+ fail:
3914
+ return Qnil;
3915
+ }
3800
3916
 
3801
- Get the number of sectors between this track an the next. This
3802
- includes any pregap sectors before the start of the next track.
3803
- Track numbers usually start at something
3804
- greater than 0, usually 1.
3805
3917
 
3806
- 0 is returned if there is an error..
3918
+
3919
+ /*
3920
+ Document-method: Rubycdio.cdtext_get
3921
+
3922
+ call-seq:
3923
+ cdtext_get(key, cdtext) -> char
3924
+
3925
+ cdtext_get(key, p_cdtext)->string
3926
+ Get the value associated with key..
3927
+ */
3928
+ SWIGINTERN VALUE
3929
+ _wrap_cdtext_get(int argc, VALUE *argv, VALUE self) {
3930
+ cdtext_field_t arg1 ;
3931
+ cdtext_t *arg2 = (cdtext_t *) 0 ;
3932
+ unsigned long val1 ;
3933
+ int ecode1 = 0 ;
3934
+ void *argp2 = 0 ;
3935
+ int res2 = 0 ;
3936
+ char *result = 0 ;
3937
+ VALUE vresult = Qnil;
3938
+
3939
+ if ((argc < 2) || (argc > 2)) {
3940
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
3941
+ }
3942
+ ecode1 = SWIG_AsVal_unsigned_SS_long(argv[0], &val1);
3943
+ if (!SWIG_IsOK(ecode1)) {
3944
+ SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "cdtext_field_t","cdtext_get", 1, argv[0] ));
3945
+ }
3946
+ arg1 = (cdtext_field_t)(val1);
3947
+ res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_cdtext_t, 0 | 0 );
3948
+ if (!SWIG_IsOK(res2)) {
3949
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "cdtext_t const *","cdtext_get", 2, argv[1] ));
3950
+ }
3951
+ arg2 = (cdtext_t *)(argp2);
3952
+ result = (char *)cdtext_get(arg1,(cdtext_t const *)arg2);
3953
+ vresult = SWIG_FromCharPtr((const char *)result);
3954
+ return vresult;
3955
+ fail:
3956
+ return Qnil;
3957
+ }
3958
+
3959
+
3960
+
3961
+ /*
3962
+ Document-method: Rubycdio.cdtext_is_keyword
3963
+
3964
+ call-seq:
3965
+ cdtext_is_keyword(key) -> cdtext_field_t
3966
+
3967
+ cdtext_is_keyword(string)->int
3968
+ Returns enum value of keyword if the key is a CD-Text keyword,
3969
+ returns MAX_CDTEXT_FIELDS otherwise..
3970
+ */
3971
+ SWIGINTERN VALUE
3972
+ _wrap_cdtext_is_keyword(int argc, VALUE *argv, VALUE self) {
3973
+ char *arg1 = (char *) 0 ;
3974
+ int res1 ;
3975
+ char *buf1 = 0 ;
3976
+ int alloc1 = 0 ;
3977
+ cdtext_field_t result;
3978
+ VALUE vresult = Qnil;
3979
+
3980
+ if ((argc < 1) || (argc > 1)) {
3981
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
3982
+ }
3983
+ res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
3984
+ if (!SWIG_IsOK(res1)) {
3985
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","cdtext_is_keyword", 1, argv[0] ));
3986
+ }
3987
+ arg1 = (char *)(buf1);
3988
+ result = (cdtext_field_t)cdtext_is_keyword((char const *)arg1);
3989
+ vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
3990
+ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
3991
+ return vresult;
3992
+ fail:
3993
+ if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
3994
+ return Qnil;
3995
+ }
3996
+
3997
+
3998
+
3999
+ /*
4000
+ Document-method: Rubycdio.cdtext_set
4001
+
4002
+ call-seq:
4003
+ cdtext_set(key, value, cdtext)
4004
+
4005
+ cdtext_set(key, string, p_cdtext)
4006
+ Set the value associated with key..
4007
+ */
4008
+ SWIGINTERN VALUE
4009
+ _wrap_cdtext_set(int argc, VALUE *argv, VALUE self) {
4010
+ cdtext_field_t arg1 ;
4011
+ char *arg2 = (char *) 0 ;
4012
+ cdtext_t *arg3 = (cdtext_t *) 0 ;
4013
+ unsigned long val1 ;
4014
+ int ecode1 = 0 ;
4015
+ int res2 ;
4016
+ char *buf2 = 0 ;
4017
+ int alloc2 = 0 ;
4018
+ void *argp3 = 0 ;
4019
+ int res3 = 0 ;
4020
+
4021
+ if ((argc < 3) || (argc > 3)) {
4022
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
4023
+ }
4024
+ ecode1 = SWIG_AsVal_unsigned_SS_long(argv[0], &val1);
4025
+ if (!SWIG_IsOK(ecode1)) {
4026
+ SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "cdtext_field_t","cdtext_set", 1, argv[0] ));
4027
+ }
4028
+ arg1 = (cdtext_field_t)(val1);
4029
+ res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
4030
+ if (!SWIG_IsOK(res2)) {
4031
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","cdtext_set", 2, argv[1] ));
4032
+ }
4033
+ arg2 = (char *)(buf2);
4034
+ res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_cdtext_t, 0 | 0 );
4035
+ if (!SWIG_IsOK(res3)) {
4036
+ SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "cdtext_t *","cdtext_set", 3, argv[2] ));
4037
+ }
4038
+ arg3 = (cdtext_t *)(argp3);
4039
+ cdtext_set(arg1,(char const *)arg2,arg3);
4040
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
4041
+ return Qnil;
4042
+ fail:
4043
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
4044
+ return Qnil;
4045
+ }
4046
+
4047
+
4048
+
4049
+ /*
4050
+ Document-method: Rubycdio.close_tray
4051
+
4052
+ call-seq:
4053
+ close_tray(psz_drive, p_driver_id=DRIVER_UNKNOWN) -> driver_return_code_t
4054
+
4055
+ cdtext_set(key, string, p_cdtext)
4056
+ Set the value associated with key..
3807
4057
  */
3808
4058
  SWIGINTERN VALUE
3809
4059
  _wrap_close_tray(int argc, VALUE *argv, VALUE self) {
3810
4060
  char *arg1 = (char *) 0 ;
3811
4061
  driver_id_t arg2 = (driver_id_t) DRIVER_UNKNOWN ;
3812
4062
  driver_id_t *arg3 = (driver_id_t *) 0 ;
3813
- driver_return_code_t result;
3814
4063
  int res1 ;
3815
4064
  char *buf1 = 0 ;
3816
4065
  int alloc1 = 0 ;
@@ -3818,6 +4067,7 @@ _wrap_close_tray(int argc, VALUE *argv, VALUE self) {
3818
4067
  int ecode2 = 0 ;
3819
4068
  driver_id_t temp3 ;
3820
4069
  int res3 = SWIG_TMPOBJ ;
4070
+ driver_return_code_t result;
3821
4071
  VALUE vresult = Qnil;
3822
4072
 
3823
4073
  arg3 = &temp3;
@@ -3900,9 +4150,9 @@ using CD reading/control operations for the current device.
3900
4150
  SWIGINTERN VALUE
3901
4151
  _wrap_driver_errmsg(int argc, VALUE *argv, VALUE self) {
3902
4152
  driver_return_code_t arg1 ;
3903
- char *result = 0 ;
3904
4153
  long val1 ;
3905
4154
  int ecode1 = 0 ;
4155
+ char *result = 0 ;
3906
4156
  VALUE vresult = Qnil;
3907
4157
 
3908
4158
  if ((argc < 1) || (argc > 1)) {
@@ -3936,9 +4186,9 @@ Eject media in CD drive if there is a routine to do so.
3936
4186
  SWIGINTERN VALUE
3937
4187
  _wrap_eject_media(int argc, VALUE *argv, VALUE self) {
3938
4188
  CdIo_t *arg1 = (CdIo_t *) 0 ;
3939
- driver_return_code_t result;
3940
4189
  void *argp1 = 0 ;
3941
4190
  int res1 = 0 ;
4191
+ driver_return_code_t result;
3942
4192
  VALUE vresult = Qnil;
3943
4193
 
3944
4194
  if ((argc < 1) || (argc > 1)) {
@@ -3973,10 +4223,10 @@ The operation status is returned..
3973
4223
  SWIGINTERN VALUE
3974
4224
  _wrap_eject_media_drive(int argc, VALUE *argv, VALUE self) {
3975
4225
  char *arg1 = (char *) NULL ;
3976
- driver_return_code_t result;
3977
4226
  int res1 ;
3978
4227
  char *buf1 = 0 ;
3979
4228
  int alloc1 = 0 ;
4229
+ driver_return_code_t result;
3980
4230
  VALUE vresult = Qnil;
3981
4231
 
3982
4232
  if ((argc < 0) || (argc > 1)) {
@@ -4014,12 +4264,12 @@ SWIGINTERN VALUE
4014
4264
  _wrap_get_arg(int argc, VALUE *argv, VALUE self) {
4015
4265
  CdIo_t *arg1 = (CdIo_t *) 0 ;
4016
4266
  char *arg2 ;
4017
- char *result = 0 ;
4018
4267
  void *argp1 = 0 ;
4019
4268
  int res1 = 0 ;
4020
4269
  int res2 ;
4021
4270
  char *buf2 = 0 ;
4022
4271
  int alloc2 = 0 ;
4272
+ char *result = 0 ;
4023
4273
  VALUE vresult = Qnil;
4024
4274
 
4025
4275
  if ((argc < 2) || (argc > 2)) {
@@ -4065,9 +4315,9 @@ nil even though there may be a hardware CD-ROM..
4065
4315
  SWIGINTERN VALUE
4066
4316
  _wrap_get_device(int argc, VALUE *argv, VALUE self) {
4067
4317
  CdIo_t *arg1 = (CdIo_t *) NULL ;
4068
- char *result = 0 ;
4069
4318
  void *argp1 = 0 ;
4070
4319
  int res1 = 0 ;
4320
+ char *result = 0 ;
4071
4321
  VALUE vresult = Qnil;
4072
4322
 
4073
4323
  if ((argc < 0) || (argc > 1)) {
@@ -4107,11 +4357,11 @@ SWIGINTERN VALUE
4107
4357
  _wrap_get_default_device_driver(int argc, VALUE *argv, VALUE self) {
4108
4358
  driver_id_t arg1 ;
4109
4359
  driver_id_t *arg2 = (driver_id_t *) 0 ;
4110
- char *result = 0 ;
4111
4360
  unsigned int val1 ;
4112
4361
  int ecode1 = 0 ;
4113
4362
  driver_id_t temp2 ;
4114
4363
  int res2 = SWIG_TMPOBJ ;
4364
+ char *result = 0 ;
4115
4365
  VALUE vresult = Qnil;
4116
4366
 
4117
4367
  arg2 = &temp2;
@@ -4155,9 +4405,9 @@ nil is returned as the device if we couldn't get a default device..
4155
4405
  SWIGINTERN VALUE
4156
4406
  _wrap_get_devices(int argc, VALUE *argv, VALUE self) {
4157
4407
  driver_id_t arg1 ;
4158
- DeviceList_t result;
4159
4408
  unsigned int val1 ;
4160
4409
  int ecode1 = 0 ;
4410
+ DeviceList_t result;
4161
4411
  VALUE vresult = Qnil;
4162
4412
 
4163
4413
  if ((argc < 1) || (argc > 1)) {
@@ -4171,9 +4421,9 @@ _wrap_get_devices(int argc, VALUE *argv, VALUE self) {
4171
4421
  result = (DeviceList_t)cdio_get_devices(arg1);
4172
4422
  {
4173
4423
  // result is of type DeviceList_t
4174
- char **p = result;
4424
+ char **p = result;
4175
4425
 
4176
- if (result) {
4426
+ if (result && *result) {
4177
4427
  VALUE aDevices = rb_ary_new();
4178
4428
  for (p = result; *p; p++) {
4179
4429
  rb_ary_push(aDevices, rb_str_new2(*p));
@@ -4208,11 +4458,11 @@ SWIGINTERN VALUE
4208
4458
  _wrap_get_devices_ret(int argc, VALUE *argv, VALUE self) {
4209
4459
  driver_id_t arg1 ;
4210
4460
  driver_id_t *arg2 = (driver_id_t *) 0 ;
4211
- DeviceList_t result;
4212
4461
  unsigned int val1 ;
4213
4462
  int ecode1 = 0 ;
4214
4463
  driver_id_t temp2 ;
4215
4464
  int res2 = SWIG_TMPOBJ ;
4465
+ DeviceList_t result;
4216
4466
  VALUE vresult = Qnil;
4217
4467
 
4218
4468
  arg2 = &temp2;
@@ -4227,9 +4477,9 @@ _wrap_get_devices_ret(int argc, VALUE *argv, VALUE self) {
4227
4477
  result = (DeviceList_t)get_devices_ret(arg1,arg2);
4228
4478
  {
4229
4479
  // result is of type DeviceList_t
4230
- char **p = result;
4480
+ char **p = result;
4231
4481
 
4232
- if (result) {
4482
+ if (result && *result) {
4233
4483
  VALUE aDevices = rb_ary_new();
4234
4484
  for (p = result; *p; p++) {
4235
4485
  rb_ary_push(aDevices, rb_str_new2(*p));
@@ -4279,11 +4529,11 @@ SWIGINTERN VALUE
4279
4529
  _wrap_get_devices_with_cap(int argc, VALUE *argv, VALUE self) {
4280
4530
  unsigned int arg1 ;
4281
4531
  bool arg2 ;
4282
- DeviceList_t result;
4283
4532
  unsigned int val1 ;
4284
4533
  int ecode1 = 0 ;
4285
4534
  bool val2 ;
4286
4535
  int ecode2 = 0 ;
4536
+ DeviceList_t result;
4287
4537
  VALUE vresult = Qnil;
4288
4538
 
4289
4539
  if ((argc < 2) || (argc > 2)) {
@@ -4302,9 +4552,9 @@ _wrap_get_devices_with_cap(int argc, VALUE *argv, VALUE self) {
4302
4552
  result = (DeviceList_t)get_devices_with_cap(arg1,arg2);
4303
4553
  {
4304
4554
  // result is of type DeviceList_t
4305
- char **p = result;
4555
+ char **p = result;
4306
4556
 
4307
- if (result) {
4557
+ if (result && *result) {
4308
4558
  VALUE aDevices = rb_ary_new();
4309
4559
  for (p = result; *p; p++) {
4310
4560
  rb_ary_push(aDevices, rb_str_new2(*p));
@@ -4338,13 +4588,13 @@ _wrap_get_devices_with_cap_ret(int argc, VALUE *argv, VALUE self) {
4338
4588
  unsigned int arg1 ;
4339
4589
  bool arg2 ;
4340
4590
  driver_id_t *arg3 = (driver_id_t *) 0 ;
4341
- DeviceList_t result;
4342
4591
  unsigned int val1 ;
4343
4592
  int ecode1 = 0 ;
4344
4593
  bool val2 ;
4345
4594
  int ecode2 = 0 ;
4346
4595
  driver_id_t temp3 ;
4347
4596
  int res3 = SWIG_TMPOBJ ;
4597
+ DeviceList_t result;
4348
4598
  VALUE vresult = Qnil;
4349
4599
 
4350
4600
  arg3 = &temp3;
@@ -4364,9 +4614,9 @@ _wrap_get_devices_with_cap_ret(int argc, VALUE *argv, VALUE self) {
4364
4614
  result = (DeviceList_t)get_devices_with_cap_ret(arg1,arg2,arg3);
4365
4615
  {
4366
4616
  // result is of type DeviceList_t
4367
- char **p = result;
4617
+ char **p = result;
4368
4618
 
4369
- if (result) {
4619
+ if (result && *result) {
4370
4620
  VALUE aDevices = rb_ary_new();
4371
4621
  for (p = result; *p; p++) {
4372
4622
  rb_ary_push(aDevices, rb_str_new2(*p));
@@ -4571,9 +4821,9 @@ return a string containing the name of the driver in use.
4571
4821
  SWIGINTERN VALUE
4572
4822
  _wrap_get_driver_name(int argc, VALUE *argv, VALUE self) {
4573
4823
  CdIo_t *arg1 = (CdIo_t *) 0 ;
4574
- char *result = 0 ;
4575
4824
  void *argp1 = 0 ;
4576
4825
  int res1 = 0 ;
4826
+ char *result = 0 ;
4577
4827
  VALUE vresult = Qnil;
4578
4828
 
4579
4829
  if ((argc < 1) || (argc > 1)) {
@@ -4608,9 +4858,9 @@ return pycdio.DRIVER_UNKNOWN..
4608
4858
  SWIGINTERN VALUE
4609
4859
  _wrap_get_driver_id(int argc, VALUE *argv, VALUE self) {
4610
4860
  CdIo_t *arg1 = (CdIo_t *) 0 ;
4611
- driver_id_t result;
4612
4861
  void *argp1 = 0 ;
4613
4862
  int res1 = 0 ;
4863
+ driver_id_t result;
4614
4864
  VALUE vresult = Qnil;
4615
4865
 
4616
4866
  if ((argc < 1) || (argc > 1)) {
@@ -4646,11 +4896,11 @@ SWIGINTERN VALUE
4646
4896
  _wrap_get_last_session(int argc, VALUE *argv, VALUE self) {
4647
4897
  CdIo_t *arg1 = (CdIo_t *) 0 ;
4648
4898
  lsn_t *arg2 = (lsn_t *) 0 ;
4649
- driver_return_code_t result;
4650
4899
  void *argp1 = 0 ;
4651
4900
  int res1 = 0 ;
4652
4901
  lsn_t temp2 ;
4653
4902
  int res2 = SWIG_TMPOBJ ;
4903
+ driver_return_code_t result;
4654
4904
  VALUE vresult = Qnil;
4655
4905
 
4656
4906
  arg2 = &temp2;
@@ -4691,9 +4941,9 @@ if driver id is out of range..
4691
4941
  SWIGINTERN VALUE
4692
4942
  _wrap_have_driver(int argc, VALUE *argv, VALUE self) {
4693
4943
  unsigned int arg1 ;
4694
- int result;
4695
4944
  unsigned int val1 ;
4696
4945
  int ecode1 = 0 ;
4946
+ int result;
4697
4947
  VALUE vresult = Qnil;
4698
4948
 
4699
4949
  if ((argc < 1) || (argc > 1)) {
@@ -4725,9 +4975,9 @@ return True if CD-ROM understand ATAPI commands..
4725
4975
  SWIGINTERN VALUE
4726
4976
  _wrap_ATAPIq___(int argc, VALUE *argv, VALUE self) {
4727
4977
  CdIo_t *arg1 = (CdIo_t *) 0 ;
4728
- bool result;
4729
4978
  void *argp1 = 0 ;
4730
4979
  int res1 = 0 ;
4980
+ bool result;
4731
4981
  VALUE vresult = Qnil;
4732
4982
 
4733
4983
  if ((argc < 1) || (argc > 1)) {
@@ -4764,10 +5014,10 @@ nil if not a BIN file..
4764
5014
  SWIGINTERN VALUE
4765
5015
  _wrap_is_binfile(int argc, VALUE *argv, VALUE self) {
4766
5016
  char *arg1 = (char *) 0 ;
4767
- buf_t result;
4768
5017
  int res1 ;
4769
5018
  char *buf1 = 0 ;
4770
5019
  int alloc1 = 0 ;
5020
+ buf_t result;
4771
5021
  VALUE vresult = Qnil;
4772
5022
 
4773
5023
  if ((argc < 1) || (argc > 1)) {
@@ -4806,10 +5056,10 @@ nil if not a CUE file..
4806
5056
  SWIGINTERN VALUE
4807
5057
  _wrap_is_cuefile(int argc, VALUE *argv, VALUE self) {
4808
5058
  char *arg1 = (char *) 0 ;
4809
- buf_t result;
4810
5059
  int res1 ;
4811
5060
  char *buf1 = 0 ;
4812
5061
  int alloc1 = 0 ;
5062
+ buf_t result;
4813
5063
  VALUE vresult = Qnil;
4814
5064
 
4815
5065
  if ((argc < 1) || (argc > 1)) {
@@ -4849,12 +5099,12 @@ SWIGINTERN VALUE
4849
5099
  _wrap_cdio_is_device(int argc, VALUE *argv, VALUE self) {
4850
5100
  char *arg1 = (char *) 0 ;
4851
5101
  driver_id_t arg2 = (driver_id_t) DRIVER_UNKNOWN ;
4852
- bool result;
4853
5102
  int res1 ;
4854
5103
  char *buf1 = 0 ;
4855
5104
  int alloc1 = 0 ;
4856
5105
  unsigned int val2 ;
4857
5106
  int ecode2 = 0 ;
5107
+ bool result;
4858
5108
  VALUE vresult = Qnil;
4859
5109
 
4860
5110
  if ((argc < 1) || (argc > 2)) {
@@ -4901,12 +5151,12 @@ SWIGINTERN VALUE
4901
5151
  _wrap_deviceq___(int argc, VALUE *argv, VALUE self) {
4902
5152
  char *arg1 = (char *) 0 ;
4903
5153
  driver_id_t arg2 ;
4904
- bool result;
4905
5154
  int res1 ;
4906
5155
  char *buf1 = 0 ;
4907
5156
  int alloc1 = 0 ;
4908
5157
  unsigned int val2 ;
4909
5158
  int ecode2 = 0 ;
5159
+ bool result;
4910
5160
  VALUE vresult = Qnil;
4911
5161
 
4912
5162
  if ((argc < 2) || (argc > 2)) {
@@ -4946,10 +5196,10 @@ Determine if nrg_name is a Nero CD disc image.
4946
5196
  SWIGINTERN VALUE
4947
5197
  _wrap_nrgq___(int argc, VALUE *argv, VALUE self) {
4948
5198
  char *arg1 = (char *) 0 ;
4949
- bool result;
4950
5199
  int res1 ;
4951
5200
  char *buf1 = 0 ;
4952
5201
  int alloc1 = 0 ;
5202
+ bool result;
4953
5203
  VALUE vresult = Qnil;
4954
5204
 
4955
5205
  if ((argc < 1) || (argc > 1)) {
@@ -4984,10 +5234,10 @@ Determine if tocfile_name is a cdrdao CD disc image.
4984
5234
  SWIGINTERN VALUE
4985
5235
  _wrap_tocfileq___(int argc, VALUE *argv, VALUE self) {
4986
5236
  char *arg1 = (char *) 0 ;
4987
- bool result;
4988
5237
  int res1 ;
4989
5238
  char *buf1 = 0 ;
4990
5239
  int alloc1 = 0 ;
5240
+ bool result;
4991
5241
  VALUE vresult = Qnil;
4992
5242
 
4993
5243
  if ((argc < 1) || (argc > 1)) {
@@ -5024,9 +5274,9 @@ return codes are the same as driver_return_code_t.
5024
5274
  SWIGINTERN VALUE
5025
5275
  _wrap_get_media_changed(int argc, VALUE *argv, VALUE self) {
5026
5276
  CdIo_t *arg1 = (CdIo_t *) 0 ;
5027
- int result;
5028
5277
  void *argp1 = 0 ;
5029
5278
  int res1 = 0 ;
5279
+ int result;
5030
5280
  VALUE vresult = Qnil;
5031
5281
 
5032
5282
  if ((argc < 1) || (argc > 1)) {
@@ -5115,7 +5365,6 @@ _wrap_HWInfo_t_hw_set(int argc, VALUE *argv, VALUE self) {
5115
5365
  }
5116
5366
  }
5117
5367
  if (arg1) (arg1)->hw = arg2;
5118
-
5119
5368
  return Qnil;
5120
5369
  fail:
5121
5370
  return Qnil;
@@ -5125,9 +5374,9 @@ fail:
5125
5374
  SWIGINTERN VALUE
5126
5375
  _wrap_HWInfo_t_hw_get(int argc, VALUE *argv, VALUE self) {
5127
5376
  HWInfo_t *arg1 = (HWInfo_t *) 0 ;
5128
- cdio_hwinfo_t result;
5129
5377
  void *argp1 = 0 ;
5130
5378
  int res1 = 0 ;
5379
+ cdio_hwinfo_t result;
5131
5380
  VALUE vresult = Qnil;
5132
5381
 
5133
5382
  if ((argc < 0) || (argc > 0)) {
@@ -5195,7 +5444,6 @@ _wrap_HWInfo_t_result_set(int argc, VALUE *argv, VALUE self) {
5195
5444
  }
5196
5445
  arg2 = (bool)(val2);
5197
5446
  if (arg1) (arg1)->result = arg2;
5198
-
5199
5447
  return Qnil;
5200
5448
  fail:
5201
5449
  return Qnil;
@@ -5205,9 +5453,9 @@ fail:
5205
5453
  SWIGINTERN VALUE
5206
5454
  _wrap_HWInfo_t_result_get(int argc, VALUE *argv, VALUE self) {
5207
5455
  HWInfo_t *arg1 = (HWInfo_t *) 0 ;
5208
- bool result;
5209
5456
  void *argp1 = 0 ;
5210
5457
  int res1 = 0 ;
5458
+ bool result;
5211
5459
  VALUE vresult = Qnil;
5212
5460
 
5213
5461
  if ((argc < 0) || (argc > 0)) {
@@ -5262,8 +5510,8 @@ _wrap_new_HWInfo_t(int argc, VALUE *argv, VALUE self) {
5262
5510
  if ((argc < 0) || (argc > 0)) {
5263
5511
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
5264
5512
  }
5265
- result = (HWInfo_t *)(HWInfo_t *) calloc(1, sizeof(HWInfo_t));DATA_PTR(self) = result;
5266
-
5513
+ result = (HWInfo_t *)calloc(1, sizeof(HWInfo_t));
5514
+ DATA_PTR(self) = result;
5267
5515
  return self;
5268
5516
  fail:
5269
5517
  return Qnil;
@@ -5291,9 +5539,9 @@ return codes are the same as driver_return_code_t.
5291
5539
  SWIGINTERN VALUE
5292
5540
  _wrap_get_hwinfo(int argc, VALUE *argv, VALUE self) {
5293
5541
  CdIo_t *arg1 = (CdIo_t *) 0 ;
5294
- HWInfo_t result;
5295
5542
  void *argp1 = 0 ;
5296
5543
  int res1 = 0 ;
5544
+ HWInfo_t result;
5297
5545
  VALUE vresult = Qnil;
5298
5546
 
5299
5547
  if ((argc < 1) || (argc > 1)) {
@@ -5342,11 +5590,11 @@ SWIGINTERN VALUE
5342
5590
  _wrap_set_blocksize(int argc, VALUE *argv, VALUE self) {
5343
5591
  CdIo_t *arg1 = (CdIo_t *) 0 ;
5344
5592
  int arg2 ;
5345
- driver_return_code_t result;
5346
5593
  void *argp1 = 0 ;
5347
5594
  int res1 = 0 ;
5348
5595
  int val2 ;
5349
5596
  int ecode2 = 0 ;
5597
+ driver_return_code_t result;
5350
5598
  VALUE vresult = Qnil;
5351
5599
 
5352
5600
  if ((argc < 2) || (argc > 2)) {
@@ -5384,11 +5632,11 @@ SWIGINTERN VALUE
5384
5632
  _wrap_set_speed(int argc, VALUE *argv, VALUE self) {
5385
5633
  CdIo_t *arg1 = (CdIo_t *) 0 ;
5386
5634
  int arg2 ;
5387
- driver_return_code_t result;
5388
5635
  void *argp1 = 0 ;
5389
5636
  int res1 = 0 ;
5390
5637
  int val2 ;
5391
5638
  int ecode2 = 0 ;
5639
+ driver_return_code_t result;
5392
5640
  VALUE vresult = Qnil;
5393
5641
 
5394
5642
  if ((argc < 2) || (argc > 2)) {
@@ -5436,7 +5684,6 @@ _wrap_open_cd(int argc, VALUE *argv, VALUE self) {
5436
5684
  char *arg1 = (char *) 0 ;
5437
5685
  driver_id_t arg2 = (driver_id_t) DRIVER_UNKNOWN ;
5438
5686
  char *arg3 = (char *) NULL ;
5439
- CdIo_t *result = 0 ;
5440
5687
  int res1 ;
5441
5688
  char *buf1 = 0 ;
5442
5689
  int alloc1 = 0 ;
@@ -5445,6 +5692,7 @@ _wrap_open_cd(int argc, VALUE *argv, VALUE self) {
5445
5692
  int res3 ;
5446
5693
  char *buf3 = 0 ;
5447
5694
  int alloc3 = 0 ;
5695
+ CdIo_t *result = 0 ;
5448
5696
  VALUE vresult = Qnil;
5449
5697
 
5450
5698
  if ((argc < 1) || (argc > 3)) {
@@ -5491,14 +5739,14 @@ fail:
5491
5739
  get_disc_last_lsn(cdio)->lsn
5492
5740
  Get the LSN of the end of the CD.
5493
5741
 
5494
- perlcdio.INVALID_LSN is returned on error..
5742
+ rubycdio.INVALID_LSN is returned on error..
5495
5743
  */
5496
5744
  SWIGINTERN VALUE
5497
5745
  _wrap_get_disc_last_lsn(int argc, VALUE *argv, VALUE self) {
5498
5746
  CdIo_t *arg1 = (CdIo_t *) 0 ;
5499
- lsn_t result;
5500
5747
  void *argp1 = 0 ;
5501
5748
  int res1 = 0 ;
5749
+ lsn_t result;
5502
5750
  VALUE vresult = Qnil;
5503
5751
 
5504
5752
  if ((argc < 1) || (argc > 1)) {
@@ -5533,9 +5781,9 @@ DVD's..
5533
5781
  SWIGINTERN VALUE
5534
5782
  _wrap_get_disc_mode(int argc, VALUE *argv, VALUE self) {
5535
5783
  CdIo_t *arg1 = (CdIo_t *) 0 ;
5536
- char *result = 0 ;
5537
5784
  void *argp1 = 0 ;
5538
5785
  int res1 = 0 ;
5786
+ char *result = 0 ;
5539
5787
  VALUE vresult = Qnil;
5540
5788
 
5541
5789
  if ((argc < 1) || (argc > 1)) {
@@ -5570,9 +5818,9 @@ filesystem..
5570
5818
  SWIGINTERN VALUE
5571
5819
  _wrap_get_joliet_level(int argc, VALUE *argv, VALUE self) {
5572
5820
  CdIo_t *arg1 = (CdIo_t *) 0 ;
5573
- int result;
5574
5821
  void *argp1 = 0 ;
5575
5822
  int res1 = 0 ;
5823
+ int result;
5576
5824
  VALUE vresult = Qnil;
5577
5825
 
5578
5826
  if ((argc < 1) || (argc > 1)) {
@@ -5607,9 +5855,9 @@ filesystem..
5607
5855
  SWIGINTERN VALUE
5608
5856
  _wrap_get_mcn(int argc, VALUE *argv, VALUE self) {
5609
5857
  CdIo_t *arg1 = (CdIo_t *) 0 ;
5610
- char *result = 0 ;
5611
5858
  void *argp1 = 0 ;
5612
5859
  int res1 = 0 ;
5860
+ char *result = 0 ;
5613
5861
  VALUE vresult = Qnil;
5614
5862
 
5615
5863
  if ((argc < 1) || (argc > 1)) {
@@ -5644,9 +5892,9 @@ On error rubycdio::INVALID_TRACK is returned..
5644
5892
  SWIGINTERN VALUE
5645
5893
  _wrap_get_num_tracks(int argc, VALUE *argv, VALUE self) {
5646
5894
  CdIo_t *arg1 = (CdIo_t *) 0 ;
5647
- track_t result;
5648
5895
  void *argp1 = 0 ;
5649
5896
  int res1 = 0 ;
5897
+ track_t result;
5650
5898
  VALUE vresult = Qnil;
5651
5899
 
5652
5900
  if ((argc < 1) || (argc > 1)) {
@@ -5673,11 +5921,13 @@ static swig_type_info _swigt__p_CdIo_t = {"_p_CdIo_t", "CdIo_t *", 0, 0, (void*)
5673
5921
  static swig_type_info _swigt__p_HWInfo_t = {"_p_HWInfo_t", "HWInfo_t *", 0, 0, (void*)0, 0};
5674
5922
  static swig_type_info _swigt__p_cdio_hwinfo_t = {"_p_cdio_hwinfo_t", "cdio_hwinfo_t *", 0, 0, (void*)0, 0};
5675
5923
  static swig_type_info _swigt__p_cdio_read_mode_t = {"_p_cdio_read_mode_t", "enum cdio_read_mode_t *|cdio_read_mode_t *", 0, 0, (void*)0, 0};
5924
+ static swig_type_info _swigt__p_cdtext_t = {"_p_cdtext_t", "cdtext_t *", 0, 0, (void*)0, 0};
5676
5925
  static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
5677
5926
  static swig_type_info _swigt__p_int = {"_p_int", "int *|lba_t *|track_flag_t *|lsn_t *|int16_t *", 0, 0, (void*)0, 0};
5678
5927
  static swig_type_info _swigt__p_long = {"_p_long", "my_ssize_t *|ssize_t *|long *|driver_return_code_t *", 0, 0, (void*)0, 0};
5679
5928
  static swig_type_info _swigt__p_off_t = {"_p_off_t", "off_t *", 0, 0, (void*)0, 0};
5680
5929
  static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "track_t *|unsigned int *|cdio_drive_write_cap_t *|cdio_drive_misc_cap_t *|cdio_drive_read_cap_t *|driver_id_t *", 0, 0, (void*)0, 0};
5930
+ static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|cdtext_field_t *", 0, 0, (void*)0, 0};
5681
5931
 
5682
5932
  static swig_type_info *swig_type_initial[] = {
5683
5933
  &_swigt__p_Buf_triple_t,
@@ -5685,11 +5935,13 @@ static swig_type_info *swig_type_initial[] = {
5685
5935
  &_swigt__p_HWInfo_t,
5686
5936
  &_swigt__p_cdio_hwinfo_t,
5687
5937
  &_swigt__p_cdio_read_mode_t,
5938
+ &_swigt__p_cdtext_t,
5688
5939
  &_swigt__p_char,
5689
5940
  &_swigt__p_int,
5690
5941
  &_swigt__p_long,
5691
5942
  &_swigt__p_off_t,
5692
5943
  &_swigt__p_unsigned_int,
5944
+ &_swigt__p_unsigned_long,
5693
5945
  };
5694
5946
 
5695
5947
  static swig_cast_info _swigc__p_Buf_triple_t[] = { {&_swigt__p_Buf_triple_t, 0, 0, 0},{0, 0, 0, 0}};
@@ -5697,11 +5949,13 @@ static swig_cast_info _swigc__p_CdIo_t[] = { {&_swigt__p_CdIo_t, 0, 0, 0},{0, 0
5697
5949
  static swig_cast_info _swigc__p_HWInfo_t[] = { {&_swigt__p_HWInfo_t, 0, 0, 0},{0, 0, 0, 0}};
5698
5950
  static swig_cast_info _swigc__p_cdio_hwinfo_t[] = { {&_swigt__p_cdio_hwinfo_t, 0, 0, 0},{0, 0, 0, 0}};
5699
5951
  static swig_cast_info _swigc__p_cdio_read_mode_t[] = { {&_swigt__p_cdio_read_mode_t, 0, 0, 0},{0, 0, 0, 0}};
5952
+ static swig_cast_info _swigc__p_cdtext_t[] = { {&_swigt__p_cdtext_t, 0, 0, 0},{0, 0, 0, 0}};
5700
5953
  static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
5701
5954
  static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
5702
5955
  static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
5703
5956
  static swig_cast_info _swigc__p_off_t[] = { {&_swigt__p_off_t, 0, 0, 0},{0, 0, 0, 0}};
5704
5957
  static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
5958
+ static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
5705
5959
 
5706
5960
  static swig_cast_info *swig_cast_initial[] = {
5707
5961
  _swigc__p_Buf_triple_t,
@@ -5709,11 +5963,13 @@ static swig_cast_info *swig_cast_initial[] = {
5709
5963
  _swigc__p_HWInfo_t,
5710
5964
  _swigc__p_cdio_hwinfo_t,
5711
5965
  _swigc__p_cdio_read_mode_t,
5966
+ _swigc__p_cdtext_t,
5712
5967
  _swigc__p_char,
5713
5968
  _swigc__p_int,
5714
5969
  _swigc__p_long,
5715
5970
  _swigc__p_off_t,
5716
5971
  _swigc__p_unsigned_int,
5972
+ _swigc__p_unsigned_long,
5717
5973
  };
5718
5974
 
5719
5975
 
@@ -5776,7 +6032,7 @@ SWIGRUNTIME void
5776
6032
  SWIG_InitializeModule(void *clientdata) {
5777
6033
  size_t i;
5778
6034
  swig_module_info *module_head, *iter;
5779
- int found;
6035
+ int found, init;
5780
6036
 
5781
6037
  clientdata = clientdata;
5782
6038
 
@@ -5786,6 +6042,9 @@ SWIG_InitializeModule(void *clientdata) {
5786
6042
  swig_module.type_initial = swig_type_initial;
5787
6043
  swig_module.cast_initial = swig_cast_initial;
5788
6044
  swig_module.next = &swig_module;
6045
+ init = 1;
6046
+ } else {
6047
+ init = 0;
5789
6048
  }
5790
6049
 
5791
6050
  /* Try and load any already created modules */
@@ -5814,6 +6073,12 @@ SWIG_InitializeModule(void *clientdata) {
5814
6073
  module_head->next = &swig_module;
5815
6074
  }
5816
6075
 
6076
+ /* When multiple interpeters are used, a module could have already been initialized in
6077
+ a different interpreter, but not yet have a pointer in this interpreter.
6078
+ In this case, we do not want to continue adding types... everything should be
6079
+ set up already */
6080
+ if (init == 0) return;
6081
+
5817
6082
  /* Now work on filling in swig_module.types */
5818
6083
  #ifdef SWIGRUNTIME_DEBUG
5819
6084
  printf("SWIG_InitializeModule: size %d\n", swig_module.size);
@@ -6031,6 +6296,7 @@ SWIGEXPORT void Init_rubycdio(void) {
6031
6296
  rb_define_const(mRubycdio, "MODE2_RAW", SWIG_From_long((long)(MODE2_RAW)));
6032
6297
  rb_define_const(mRubycdio, "INVALID_TRACK", SWIG_From_long((long)(CDIO_INVALID_TRACK)));
6033
6298
  rb_define_const(mRubycdio, "CDROM_LEADOUT_TRACK", SWIG_From_long((long)(0xAA)));
6299
+ rb_define_module_function(mRubycdio, "get_cdtext", _wrap_get_cdtext, -1);
6034
6300
  rb_define_module_function(mRubycdio, "get_first_track_num", _wrap_get_first_track_num, -1);
6035
6301
  rb_define_module_function(mRubycdio, "get_last_track_num", _wrap_get_last_track_num, -1);
6036
6302
  rb_define_module_function(mRubycdio, "get_track", _wrap_get_track, -1);
@@ -6044,6 +6310,26 @@ SWIGEXPORT void Init_rubycdio(void) {
6044
6310
  rb_define_module_function(mRubycdio, "get_track_msf", _wrap_get_track_msf, -1);
6045
6311
  rb_define_module_function(mRubycdio, "get_track_preemphasis", _wrap_get_track_preemphasis, -1);
6046
6312
  rb_define_module_function(mRubycdio, "get_track_sec_count", _wrap_get_track_sec_count, -1);
6313
+ rb_define_const(mRubycdio, "CDTEXT_ARRANGER", SWIG_From_long((long)(CDTEXT_ARRANGER)));
6314
+ rb_define_const(mRubycdio, "CDTEXT_COMPOSER", SWIG_From_long((long)(CDTEXT_COMPOSER)));
6315
+ rb_define_const(mRubycdio, "CDTEXT_DISCID", SWIG_From_long((long)(CDTEXT_DISCID)));
6316
+ rb_define_const(mRubycdio, "CDTEXT_GENRE", SWIG_From_long((long)(CDTEXT_GENRE)));
6317
+ rb_define_const(mRubycdio, "CDTEXT_MESSAGE", SWIG_From_long((long)(CDTEXT_MESSAGE)));
6318
+ rb_define_const(mRubycdio, "CDTEXT_ISRC", SWIG_From_long((long)(CDTEXT_ISRC)));
6319
+ rb_define_const(mRubycdio, "CDTEXT_PERFORMER", SWIG_From_long((long)(CDTEXT_PERFORMER)));
6320
+ rb_define_const(mRubycdio, "CDTEXT_SIZE_INFO", SWIG_From_long((long)(CDTEXT_SIZE_INFO)));
6321
+ rb_define_const(mRubycdio, "CDTEXT_SONGWRITER", SWIG_From_long((long)(CDTEXT_SONGWRITER)));
6322
+ rb_define_const(mRubycdio, "CDTEXT_TITLE", SWIG_From_long((long)(CDTEXT_TITLE)));
6323
+ rb_define_const(mRubycdio, "CDTEXT_TOC_INFO", SWIG_From_long((long)(CDTEXT_TOC_INFO)));
6324
+ rb_define_const(mRubycdio, "CDTEXT_TOC_INFO2", SWIG_From_long((long)(CDTEXT_TOC_INFO2)));
6325
+ rb_define_const(mRubycdio, "CDTEXT_UPC_EAN", SWIG_From_long((long)(CDTEXT_UPC_EAN)));
6326
+ rb_define_const(mRubycdio, "CDTEXT_INVALID", SWIG_From_long((long)(CDTEXT_INVALID)));
6327
+ rb_define_const(mRubycdio, "MIN_CDTEXT_FIELD", SWIG_From_long((long)(MIN_CDTEXT_FIELD)));
6328
+ rb_define_const(mRubycdio, "MAX_CDTEXT_FIELDS", SWIG_From_long((long)(MAX_CDTEXT_FIELDS)));
6329
+ rb_define_module_function(mRubycdio, "cdtext_field2str", _wrap_cdtext_field2str, -1);
6330
+ rb_define_module_function(mRubycdio, "cdtext_get", _wrap_cdtext_get, -1);
6331
+ rb_define_module_function(mRubycdio, "cdtext_is_keyword", _wrap_cdtext_is_keyword, -1);
6332
+ rb_define_module_function(mRubycdio, "cdtext_set", _wrap_cdtext_set, -1);
6047
6333
  rb_define_const(mRubycdio, "DRIVE_CAP_ERROR", SWIG_From_long((long)(CDIO_DRIVE_CAP_ERROR)));
6048
6334
  rb_define_const(mRubycdio, "DRIVE_CAP_UNKNOWN", SWIG_From_long((long)(CDIO_DRIVE_CAP_UNKNOWN)));
6049
6335
  rb_define_const(mRubycdio, "DRIVE_CAP_MISC_CLOSE_TRAY", SWIG_From_long((long)(CDIO_DRIVE_CAP_MISC_CLOSE_TRAY)));