File canvas-draw/racket/clipboard.rkt artifact ea82433da2 part of check-in 6ea974f487


#lang racket/base
(require
 ffi/unsafe
 "base.rkt")

(define libcd-native
  (case (system-type 'os)
    [(unix macosx)
     (ffi-lib "libcdx11")]
    [(windows)
     (ffi-lib "cd")]
    [else
     (ffi-lib "libcd")]))

;; {{{ Context types

(define context:clipboard
  ((get-ffi-obj "cdContextClipboard" libcd-native (_fun -> [context : _context]))))

(provide
 context:clipboard)

;; }}}