~ubuntu-branches/ubuntu/vivid/libgsf/vivid

« back to all changes in this revision

Viewing changes to gsf/gsf-utils.c

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2012-09-04 15:29:59 UTC
  • mfrom: (1.3.9)
  • Revision ID: package-import@ubuntu.com-20120904152959-pie0kdd9xo5pdiim
Tags: 1.14.24-0ubuntu1
* New upstream bugfix release
* debian/control:
  - Build build-depends on gtk-doc-tools, libgirepository1.0-dev
* debian/rules:
  - Build with --enable-introspection
* Add missing debian/gir1.2-gsf-1.install
* debian/libgsf-1-114.symbols:
  - Updated

Show diffs side-by-side

added added

removed removed

Lines of Context:
125
125
#endif
126
126
 
127
127
/**
128
 
 * gsf_init :
 
128
 * gsf_init:
129
129
 *
130
130
 * Initializes the GSF library
131
131
 **/
204
204
#endif
205
205
 
206
206
/**
207
 
 * gsf_init_dynamic :
208
 
 * @module : #GTypeModule.
 
207
 * gsf_init_dynamic:
 
208
 * @module: #GTypeModule.
209
209
 *
210
210
 * Initializes the GSF library and associates it with a type module @mod.
211
211
 **/
256
256
        REGISTER (gsf_clip_data);
257
257
        REGISTER (gsf_doc_meta_data);
258
258
        REGISTER (gsf_docprop_vector);
 
259
 
 
260
#ifndef _GSF_GTYPE_THREADING_FIXED
 
261
        /* add a test to avoid a set but unused variable warning */
 
262
        if (t == 0)
 
263
                g_warning ("Failed to register objects types");
 
264
#endif
259
265
}
260
266
 
261
267
/**
301
307
}
302
308
 
303
309
/**
304
 
 * gsf_mem_dump :
 
310
 * gsf_mem_dump:
305
311
 * @ptr: memory area to be dumped.
306
312
 * @len: how many bytes will be dumped.
307
313
 *
314
320
}
315
321
 
316
322
/**
317
 
 * gsf_input_dump :
 
323
 * gsf_input_dump:
318
324
 * @input: a #GsfInput
319
325
 * @dump_as_hex: If %TRUE, dump in hexidecmal format
320
326
 *
391
397
}
392
398
 
393
399
/**
394
 
 * gsf_le_get_float :
 
400
 * gsf_le_get_float:
395
401
 * @p: pointer to storage
396
402
 *
397
403
 * Interpret binary data as a float in little endian order.
435
441
}
436
442
 
437
443
/**
438
 
 * gsf_le_set_float :
 
444
 * gsf_le_set_float:
439
445
 * @p: pointer to storage
440
446
 * @f: float to be stored
441
447
 *
472
478
}
473
479
 
474
480
/**
475
 
 * gsf_le_get_double :
 
481
 * gsf_le_get_double:
476
482
 * @p: pointer to storage
477
483
 *
478
484
 * Interpret binary data as a double in little endian order.
520
526
}
521
527
 
522
528
/**
523
 
 * gsf_le_set_double :
 
529
 * gsf_le_set_double:
524
530
 * @p: pointer to storage
525
531
 * @d: double to be stored
526
532
 *
590
596
}
591
597
 
592
598
/**
593
 
 * gsf_iconv_close :
594
 
 * @handle : handle to be closed.
 
599
 * gsf_iconv_close:
 
600
 * @handle: handle to be closed.
595
601
 *
596
602
 * A utility wrapper to safely close an iconv handle.
597
603
 **/
629
635
}
630
636
 
631
637
/**
632
 
 * gsf_base64_encode_close :
633
 
 * @in : Data to be encoded
634
 
 * @inlen : Length of data to be encoded
635
 
 * @break_lines : Whether to use line breaks
636
 
 * @out : Encoded data.
 
638
 * gsf_base64_encode_close:
 
639
 * @in: Data to be encoded
 
640
 * @inlen: Length of data to be encoded
 
641
 * @break_lines: Whether to use line breaks
 
642
 * @out: Encoded data.
637
643
 * @state: holds the number of bits that are stored in @save
638
644
 * @save: leftover bits that have not yet been decoded
639
645
 *
655
661
}
656
662
 
657
663
/**
658
 
 * gsf_base64_encode_step :
659
 
 * @in : input stream
660
 
 * @len : max length of data to decode
661
 
 * @break_lines : Whether to use line breaks
662
 
 * @out : output stream
663
 
 * @state : holds the number of bits that are stored in @save
664
 
 * @save : leftover bits that have not yet been decoded
 
664
 * gsf_base64_encode_step:
 
665
 * @in: input stream
 
666
 * @len: max length of data to decode
 
667
 * @break_lines: Whether to use line breaks
 
668
 * @out: output stream
 
669
 * @state: holds the number of bits that are stored in @save
 
670
 * @save: leftover bits that have not yet been decoded
665
671
 *
666
672
 * Performs an 'encode step', only encodes blocks of 3 characters from @in into
667
673
 * the output @out at a time, saves left-over state in @state and @save
697
703
}
698
704
 
699
705
/**
700
 
 * gsf_base64_encode_simple :
701
 
 * @data : data stream
702
 
 * @len : max length of data to encode
 
706
 * gsf_base64_encode_simple:
 
707
 * @data: data stream
 
708
 * @len: max length of data to encode
703
709
 *
704
710
 * Encodes data from @data back into @data using base64 encoding.
705
711
 *
724
730
}
725
731
 
726
732
/**
727
 
 * gsf_base64_decode_simple :
728
 
 * @data : data stream
729
 
 * @len : max length of data to decode
 
733
 * gsf_base64_decode_simple:
 
734
 * @data: data stream
 
735
 * @len: max length of data to decode
730
736
 *
731
737
 * Decodes a chunk of base64 encoded data from @data back into @data.
732
738
 *