aboutsummaryrefslogtreecommitdiff
path: root/julia
diff options
context:
space:
mode:
Diffstat (limited to 'julia')
-rw-r--r--julia/CrystFEL/src/CrystFEL.jl2
-rw-r--r--julia/CrystFEL/src/datatemplates.jl3
2 files changed, 4 insertions, 1 deletions
diff --git a/julia/CrystFEL/src/CrystFEL.jl b/julia/CrystFEL/src/CrystFEL.jl
index 5afa9920..cdb99979 100644
--- a/julia/CrystFEL/src/CrystFEL.jl
+++ b/julia/CrystFEL/src/CrystFEL.jl
@@ -11,6 +11,8 @@ Julia bindings for CrystFEL data structures and routines
"""
module CrystFEL
+libcrystfel = "libcrystfel.so"
+
include("detgeom.jl")
using .DetGeoms
export Panel, DetGeom
diff --git a/julia/CrystFEL/src/datatemplates.jl b/julia/CrystFEL/src/datatemplates.jl
index 00593286..1030e2ef 100644
--- a/julia/CrystFEL/src/datatemplates.jl
+++ b/julia/CrystFEL/src/datatemplates.jl
@@ -1,5 +1,6 @@
module DataTemplates
+import ..CrystFEL: libcrystfel
export DataTemplate, loaddatatemplate
mutable struct InternalDataTemplate end
@@ -10,7 +11,7 @@ end
function loaddatatemplate(filename::AbstractString)
- out = ccall((:data_template_new_from_file, :libcrystfel),
+ out = ccall((:data_template_new_from_file, libcrystfel),
Ptr{InternalDataTemplate}, (Cstring,), filename)
if out == C_NULL
throw(OutOfMemoryError())