Subversion Repositories Kolibri OS

Rev

Rev 6495 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1.  
  2. format coff
  3. use32                                   ; Tell compiler to use 32 bit instructions
  4.  
  5. section '.init' code                    ; Keep this line before includes or GCC messes up call addresses
  6.  
  7. include '../../../programs/proc32.inc'
  8. include '../../../programs/macros.inc'
  9. purge section,mov,add,sub
  10.        
  11. include '../../../programs/dll.inc'
  12.        
  13. public init_libimg as '_kolibri_libimg_init'
  14. ;;; Returns 0 on success. -1 on failure.
  15.  
  16. proc init_libimg
  17.         pusha
  18.         mcall 68,11
  19.         stdcall dll.Load, @IMPORT
  20.         popa
  21.         ret
  22. endp   
  23.  
  24. @IMPORT:
  25. library lib_libimg,     'libimg.obj'
  26.  
  27. import lib_libimg, \
  28.         libimg_init, 'lib_init' , \
  29.         img_is_img, 'img_is_img' , \
  30.         img_info, 'img_info' , \
  31.         img_from_file, 'img_from_file', \
  32.         img_to_file, 'img_to_file', \
  33.         img_from_rgb, 'img_from_rgb', \
  34.         img_to_rgb, 'img_to_rgb', \
  35.         img_to_rgb2, 'img_to_rgb2', \
  36.         img_decode, 'img_decode', \
  37.         img_encode, 'img_encode', \
  38.         img_create, 'img_create', \
  39.         img_destroy, 'img_destroy', \
  40.         img_destroy_layer, 'img_destroy_layer', \
  41.         img_count, 'img_count', \
  42.         img_lock_bits, 'img_lock_bits', \
  43.         img_unlock_bits, 'img_unlock_bits', \
  44.         img_flip, 'img_flip', \
  45.         img_flip_layer, 'img_flip_layer', \
  46.         img_rotate, 'img_rotate', \
  47.         img_rotate_layer, 'img_rotate_layer', \
  48.         img_draw, 'img_draw'
  49.        
  50. public libimg_init as  '_libimg_init'
  51. ;       public img_is_img as  '_img_is_img'
  52. ;public img_info as  '_img_info'
  53. ;public img_from_file as  '_img_from_file'
  54. ;public img_to_file as  '_img_to_file'
  55. ;public img_from_rgb as  '_img_from_rgb'
  56. public img_to_rgb as  '_img_to_rgb'
  57. public img_to_rgb2 as  '_img_to_rgb2'
  58. public img_decode as  '_img_decode'
  59. public img_encode as  '_img_encode'
  60. public img_create as  '_img_create'
  61. public img_destroy as  '_img_destroy'
  62. public img_destroy_layer as  '_img_destroy_layer'
  63. public img_count as  '_img_count'
  64. ;public img_lock_bits as  '_img_lock_bits'
  65. ;public img_unlock_bits as  '_img_unlock_bits'
  66. public img_flip as  '_img_flip'
  67. public img_flip_layer as  '_img_flip_layer'
  68. public img_rotate as  '_img_rotate'
  69. public img_rotate_layer as  '_img_rotate_layer'
  70. public img_draw as  '_img_draw'
  71.