qitab / cl-protobufs

Common Lisp protocol buffer implementation.
MIT License
84 stars 18 forks source link

API: don't export definer macros from cl-protobufs #237

Closed copybara-service[bot] closed 4 years ago

copybara-service[bot] commented 4 years ago

API: don't export definer macros from cl-protobufs

This removes the define-schema, define-message, etc. macros from the cl-protobufs package exports and instead exports them from proto-impl. They are only intended to be used by the proto-gen-lisp generated code.

Also add a new function, proto-impl:add-file-descriptor, called by the generated code to register a file descriptor under a given pathname. This is a slightly higher-level abstraction for the generated code to use rather than setf-ing a hash table directly.

Also use "cl-protobufs:" rather than "proto:" in generated code. i.e., use the primary name of the package, in expectation of eventually removing the nicknames and using :local-nicknames instead.