summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/tng_io.h10
-rw-r--r--src/lib/tng_io.c20
2 files changed, 15 insertions, 15 deletions
diff --git a/include/tng_io.h b/include/tng_io.h
index a3dc306..c713fbd 100644
--- a/include/tng_io.h
+++ b/include/tng_io.h
@@ -1632,7 +1632,7 @@ tng_function_status DECLSPECDLLEXPORT tng_molecule_system_copy(tng_trajectory_t
tng_function_status DECLSPECDLLEXPORT tng_molecule_chains_get
(tng_trajectory_t tng_data,
tng_molecule_t molecule,
- tng_chain_t **chains,
+ tng_chain_t *chains,
int64_t *n);
/**
@@ -1652,7 +1652,7 @@ tng_function_status DECLSPECDLLEXPORT tng_molecule_chains_get
tng_function_status DECLSPECDLLEXPORT tng_molecule_residues_get
(tng_trajectory_t tng_data,
tng_molecule_t molecule,
- tng_residue_t **residues,
+ tng_residue_t *residues,
int64_t *n);
/**
@@ -1672,7 +1672,7 @@ tng_function_status DECLSPECDLLEXPORT tng_molecule_residues_get
tng_function_status DECLSPECDLLEXPORT tng_molecule_atoms_get
(tng_trajectory_t tng_data,
tng_molecule_t molecule,
- tng_atom_t **atoms,
+ tng_atom_t *atoms,
int64_t *n);
/**
@@ -1834,7 +1834,7 @@ tng_function_status DECLSPECDLLEXPORT tng_chain_name_set
tng_function_status DECLSPECDLLEXPORT tng_chain_residues_get
(const tng_trajectory_t tng_data,
const tng_chain_t chain,
- tng_residue_t **residues,
+ tng_residue_t *residues,
int64_t *n);
/**
@@ -1956,7 +1956,7 @@ tng_function_status DECLSPECDLLEXPORT tng_residue_atoms_get
(const tng_trajectory_t tng_data,
const tng_molecule_t molecule,
const tng_residue_t residue,
- tng_atom_t **atoms,
+ tng_atom_t *atoms,
int64_t *n);
/**
diff --git a/src/lib/tng_io.c b/src/lib/tng_io.c
index d17d60b..3ce0625 100644
--- a/src/lib/tng_io.c
+++ b/src/lib/tng_io.c
@@ -7593,7 +7593,7 @@ tng_function_status DECLSPECDLLEXPORT tng_molecule_system_copy(tng_trajectory_t
tng_function_status DECLSPECDLLEXPORT tng_molecule_chains_get
(const tng_trajectory_t tng_data,
const tng_molecule_t molecule,
- tng_chain_t **chains,
+ tng_chain_t *chains,
int64_t *n)
{
(void) tng_data;
@@ -7601,7 +7601,7 @@ tng_function_status DECLSPECDLLEXPORT tng_molecule_chains_get
TNG_ASSERT(chains, "TNG library: chains must not be a NULL pointer");
TNG_ASSERT(n, "TNG library: n must not be a NULL pointer");
- *chains = &molecule->chains;
+ *chains = molecule->chains;
*n = molecule->n_chains;
return(TNG_SUCCESS);
@@ -7610,7 +7610,7 @@ tng_function_status DECLSPECDLLEXPORT tng_molecule_chains_get
tng_function_status DECLSPECDLLEXPORT tng_molecule_residues_get
(const tng_trajectory_t tng_data,
const tng_molecule_t molecule,
- tng_residue_t **residues,
+ tng_residue_t *residues,
int64_t *n)
{
(void) tng_data;
@@ -7618,7 +7618,7 @@ tng_function_status DECLSPECDLLEXPORT tng_molecule_residues_get
TNG_ASSERT(residues, "TNG library: residues must not be a NULL pointer");
TNG_ASSERT(n, "TNG library: n must not be a NULL pointer");
- *residues = &molecule->residues;
+ residues = &molecule->residues;
*n = molecule->n_residues;
return(TNG_SUCCESS);
@@ -7627,7 +7627,7 @@ tng_function_status DECLSPECDLLEXPORT tng_molecule_residues_get
tng_function_status DECLSPECDLLEXPORT tng_molecule_atoms_get
(const tng_trajectory_t tng_data,
const tng_molecule_t molecule,
- tng_atom_t **atoms,
+ tng_atom_t *atoms,
int64_t *n)
{
(void) tng_data;
@@ -7635,7 +7635,7 @@ tng_function_status DECLSPECDLLEXPORT tng_molecule_atoms_get
TNG_ASSERT(atoms, "TNG library: atoms must not be a NULL pointer");
TNG_ASSERT(n, "TNG library: n must not be a NULL pointer");
- *atoms = &molecule->atoms;
+ atoms = &molecule->atoms;
*n = molecule->n_atoms;
return(TNG_SUCCESS);
@@ -7878,7 +7878,7 @@ tng_function_status DECLSPECDLLEXPORT tng_chain_name_set
tng_function_status DECLSPECDLLEXPORT tng_chain_residues_get
(const tng_trajectory_t tng_data,
const tng_chain_t chain,
- tng_residue_t **residues,
+ tng_residue_t *residues,
int64_t *n)
{
(void) tng_data;
@@ -7886,7 +7886,7 @@ tng_function_status DECLSPECDLLEXPORT tng_chain_residues_get
TNG_ASSERT(residues, "TNG library: residues must not be a NULL pointer");
TNG_ASSERT(n, "TNG library: n must not be a NULL pointer");
- *residues = &chain->residues;
+ *residues = chain->residues;
*n = chain->n_residues;
return(TNG_SUCCESS);
@@ -8089,7 +8089,7 @@ tng_function_status DECLSPECDLLEXPORT tng_residue_atoms_get
(const tng_trajectory_t tng_data,
const tng_molecule_t molecule,
const tng_residue_t residue,
- tng_atom_t **atoms,
+ tng_atom_t *atoms,
int64_t *n)
{
(void) tng_data;
@@ -8097,7 +8097,7 @@ tng_function_status DECLSPECDLLEXPORT tng_residue_atoms_get
TNG_ASSERT(atoms, "TNG library: atoms must not be a NULL pointer");
TNG_ASSERT(n, "TNG library: n must not be a NULL pointer");
- **atoms = &molecule->atoms[residue->atoms_offset];
+ *atoms = &molecule->atoms[residue->atoms_offset];
*n = residue->n_atoms;
return(TNG_SUCCESS);
contact: Jan Huwald // Impressum