Subversion Repositories Kolibri OS

Rev

Rev 6456 | Rev 6535 | Go to most recent revision | 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.         mcall 68,11
  18.         stdcall dll.Load, @IMPORT
  19.         ret
  20. endp   
  21.  
  22. @IMPORT:
  23. library lib_libimg,     'libimg.obj'
  24.  
  25. import lib_libimg, \
  26.         libimg_init, 'lib_init' , \
  27.         img_is_img, 'img_is_img' , \
  28.         img_info, 'img_info' , \
  29.         img_from_file, 'img_from_file', \
  30.         img_to_file, 'img_to_file', \
  31.         img_from_rgb, 'img_from_rgb', \
  32.         img_to_rgb, 'img_to_rgb', \
  33.         img_to_rgb2, 'img_to_rgb2', \
  34.         img_decode, 'img_decode', \
  35.         img_encode, 'img_encode', \
  36.         img_create, 'img_create', \
  37.         img_destroy, 'img_destroy', \
  38.         img_destroy_layer, 'img_destroy_layer', \
  39.         img_count, 'img_count', \
  40.         img_lock_bits, 'img_lock_bits', \
  41.         img_unlock_bits, 'img_unlock_bits', \
  42.         img_flip, 'img_flip', \
  43.         img_flip_layer, 'img_flip_layer', \
  44.         img_rotate, 'img_rotate', \
  45.         img_rotate_layer, 'img_rotate_layer', \
  46.         img_draw, 'img_draw'
  47.        
  48. public libimg_init as  '_libimg_init'
  49. ;       public img_is_img as  '_img_is_img'
  50. ;public img_info as  '_img_info'
  51. ;public img_from_file as  '_img_from_file'
  52. ;public img_to_file as  '_img_to_file'
  53. ;public img_from_rgb as  '_img_from_rgb'
  54. public img_to_rgb as  '_img_to_rgb'
  55. public img_to_rgb2 as  '_img_to_rgb2'
  56. public img_decode as  '_img_decode'
  57. public img_encode as  '_img_encode'
  58. public img_create as  '_img_create'
  59. public img_destroy as  '_img_destroy'
  60. public img_destroy_layer as  '_img_destroy_layer'
  61. public img_count as  '_img_count'
  62. ;public img_lock_bits as  '_img_lock_bits'
  63. ;public img_unlock_bits as  '_img_unlock_bits'
  64. public img_flip as  '_img_flip'
  65. public img_flip_layer as  '_img_flip_layer'
  66. public img_rotate as  '_img_rotate'
  67. public img_rotate_layer as  '_img_rotate_layer'
  68. public img_draw as  '_img_draw'
  69.