Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-apps-camogm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel-apps-camogm
Commits
09cecd82
Commit
09cecd82
authored
Jun 25, 2016
by
Mikhail Karpenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build file index directory instead of copying files
parent
3e396b5e
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
309 additions
and
125 deletions
+309
-125
camogm.c
camogm.c
+5
-1
camogm_read.c
camogm_read.c
+286
-123
camogm_read.h
camogm_read.h
+18
-1
No files found.
camogm.c
View file @
09cecd82
...
@@ -800,6 +800,9 @@ void camogm_set_prefix(camogm_state *state, const char * p, path_type type)
...
@@ -800,6 +800,9 @@ void camogm_set_prefix(camogm_state *state, const char * p, path_type type)
}
else
{
}
else
{
D0
(
fprintf
(
debug_file
,
"WARNING: raw device write initiated
\n
"
));
D0
(
fprintf
(
debug_file
,
"WARNING: raw device write initiated
\n
"
));
state
->
rawdev_op
=
1
;
state
->
rawdev_op
=
1
;
/* debug code follows */
state
->
rawdev
.
end_pos
=
10485760
;
// 10 Mib
/* end of debug code */
}
}
}
}
}
}
...
@@ -1300,7 +1303,8 @@ int parse_cmd(camogm_state *state, FILE* npipe)
...
@@ -1300,7 +1303,8 @@ int parse_cmd(camogm_state *state, FILE* npipe)
return
28
;
return
28
;
}
else
if
(
strcmp
(
cmd
,
"rawdev_read"
)
==
0
)
{
}
else
if
(
strcmp
(
cmd
,
"rawdev_read"
)
==
0
)
{
if
(
state
->
rawdev_op
)
if
(
state
->
rawdev_op
)
camogm_read
(
state
);
// camogm_read(state);
build_index
(
state
);
return
29
;
return
29
;
}
}
...
...
camogm_read.c
View file @
09cecd82
This diff is collapsed.
Click to expand it.
camogm_read.h
View file @
09cecd82
...
@@ -19,6 +19,23 @@
...
@@ -19,6 +19,23 @@
#include "camogm.h"
#include "camogm.h"
int
camogm_read
(
camogm_state
*
state
);
struct
disk_index
{
struct
disk_index
*
next
;
struct
disk_index
*
prev
;
time_t
rawtime
;
useconds_t
usec
;
uint32_t
port
;
size_t
f_size
;
uint64_t
f_offset
;
};
struct
disk_idir
{
struct
disk_index
*
head
;
struct
disk_index
*
tail
;
size_t
size
;
};
//int camogm_read(camogm_state *state);
int
build_index
(
camogm_state
*
state
);
#endif
/* _CAMOGM_READ_H */
#endif
/* _CAMOGM_READ_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment