useDynLib(rbibutils, .registration=TRUE, .fixes = "C_")

importFrom("utils", "person", "bibentry", "toBibtex", ".DollarNames")
importFrom(tools, file_ext, toRd, bibstyle, getBibstyle)

S3method(print, bibentryExtra)
S3method(format, bibentryExtra)
S3method("[", bibentryExtra)
S3method("[[", bibentryExtra)
S3method("$<-", bibentryExtra)
S3method("[[<-", bibentryExtra)
S3method(c, bibentryExtra)
S3method(names, bibentryExtra)

S3method(toRd, bibentryExtra)
S3method(.DollarNames, bibentryExtra)

S3method(as.bibentryExtra, bibentry)

export(
    bibConvert,
    readBib,
    writeBib,
    readBibentry,
    writeBibentry,
    charToBib,
    rbibutils_formats,
    ## register_JSSextra, # TODO: stop exporting later
    bibentryExtra,
    as.bibentryExtra,
    bibstyle_JSSextra
)
