diff options
Diffstat (limited to 'src/call-id.lisp')
-rw-r--r-- | src/call-id.lisp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/call-id.lisp b/src/call-id.lisp new file mode 100644 index 0000000..a21e6ab --- /dev/null +++ b/src/call-id.lisp @@ -0,0 +1,15 @@ +(in-package :extreload) + +(defclass call-id () + ((id + :initform 0 + :reader id + :documentation "Current call ID.")) + + (:documentation "An incrementing identifier.")) + +(defgeneric next-call-id (call-id) + (:documentation "Increment the call ID and return the result.")) + +(defmethod next-call-id ((call-id call-id)) + (incf (slot-value call-id 'id))) |