License
Annotate for file src/kde.lisp
2009-04-14 tobias 1 ;;; Copyright (C) 2009 Tobias Rautenkranz <tobias@rautenkranz.ch>
14:31:54 ' 2 ;;;
' 3 ;;; This program is free software: you can redistribute it and/or modify
' 4 ;;; it under the terms of the GNU General Public License as published by
' 5 ;;; the Free Software Foundation, either version 3 of the License, or
' 6 ;;; (at your option) any later version.
' 7 ;;;
' 8 ;;; This program is distributed in the hope that it will be useful,
' 9 ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
' 10 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
' 11 ;;; GNU General Public License for more details.
' 12 ;;;
' 13 ;;; You should have received a copy of the GNU General Public License
' 14 ;;; along with this program. If not, see <http://www.gnu.org/licenses/>.
' 15 ;;;
' 16 ;;; As a special exception, the copyright holders of this library give you
' 17 ;;; permission to link this library with independent modules to produce an
' 18 ;;; executable, regardless of the license terms of these independent
' 19 ;;; modules, and to copy and distribute the resulting executable under
' 20 ;;; terms of your choice, provided that you also meet, for each linked
' 21 ;;; independent module, the terms and conditions of the license of that
' 22 ;;; module. An independent module is a module which is not derived from or
' 23 ;;; based on this library. If you modify this library, you may extend this
' 24 ;;; exception to your version of the library, but you are not obligated to
' 25 ;;; do so. If you do not wish to do so, delete this exception statement
' 26 ;;; from your version.
' 27
2010-04-03 tobias 28 (in-package :kde)
2009-04-05 tobias 29
2009-05-14 tobias 30 (eval-when (:load-toplevel :compile-toplevel :execute)
12:14:47 ' 31 (define-foreign-library libsmokekde
2009-05-12 tobias 32 (:unix "libsmokekde.so.2")
2009-05-14 tobias 33 (t (:default "libsmokekde")))
12:14:47 ' 34
' 35 (use-foreign-library libsmokekde)
' 36
2009-05-12 tobias 37 (defcvar "kde_Smoke" :pointer
2009-05-14 tobias 38 "The Smoke KDE binding")
12:14:47 ' 39
' 40 (defcfun (init-kde-smoke "_Z14init_kde_Smokev") :void)
' 41
' 42 (defvar *kde-binding* (null-pointer))
2010-04-03 tobias 43
2009-05-14 tobias 44 (init-kde-smoke)
12:14:47 ' 45 (disable-dr-konqi)
' 46 (setf *kde-binding* (init *kde-smoke*)))
' 47
' 48 (define-methods *kde-smoke*)
' 49
' 50 (defun new (class-name method-name &rest args)
' 51 (apply #'new-object *kde-binding* class-name method-name args))
' 52
' 53 (defun static-call (class-name method-name &rest args)
' 54 (apply #'smoke::static-call *kde-smoke* class-name method-name args))