Artifact ea82433da2d8c221147bdd0764d71869ddbf51db:


#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)

;; }}}