<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt"><div>it is the CvSeq struct from opencv and it is defined a wee bit different than the others</div><div><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">here it is as defined</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">#define
CV_TREE_NODE_FIELDS(node_type) \
<br> int flags; /* Miscellaneous flags. */ \
<br> int header_size; /* Size of sequence header. */ \
<br> struct node_type* h_prev; /* Previous sequence. */ \
<br> struct node_type* h_next; /* Next sequence. */ \
<br> struct node_type* v_prev; /* 2nd previous sequence. */ \
<br> struct node_type* v_next /* 2nd next sequence. */
<br> <br>/*
<br> Read/Write sequence.
<br> Elements can be dynamically inserted to or deleted from the sequence.
<br>*/
<br>#define CV_SEQUENCE_FIELDS() \
<br>
CV_TREE_NODE_FIELDS(CvSeq); \
<br> int total; /* Total number of elements. */ \
<br> int elem_size; /* Size of sequence element in bytes. */ \
<br> schar* block_max; /* Maximal bound of the last block. */ \
<br> schar* ptr; /* Current
write pointer. */ \
<br> int delta_elems; /* Grow seq this many at a time. */ \
<br> CvMemStorage* storage; /* Where the seq is stored. */ \
<br> CvSeqBlock* free_blocks; /* Free blocks list. */ \
<br> CvSeqBlock* first; /* Pointer to the first sequence block. */
<br> <br>typedef struct CvSeq
<br>{
<br> CV_SEQUENCE_FIELDS()
<br>} </div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family:
HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">the CV_SEQUENCE_FIELDS()
part of the typedef struct CvSeq threw me</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">I dont really know what to do with can someone just show me how to write <br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">it so I can then wrap all other structs like this....I could show things i tried but t</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">hat would take up so much space it would be exhausting to look at...below is <br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family:
HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">the swig wrapped struct i'm working with but it hasn't been working right so if <br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">you can show me how to edit it i would be very grateful =)</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br>(defcstruct cv-seq
<br> (flags :int)
<br> (header-size :int)
<br> (h-prev :pointer)
<br> (h-next :pointer)
<br> (v-prev :pointer)
<br> (v-next :pointer)
<br> (total :int)
<br> (elem-size :int)
<br> (block-max :pointer)
<br> (ptr :pointer)
<br> (delta-elems :int)
<br> (storage :pointer)
<br> (free-blocks :pointer)
<br> (first :pointer))</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family:
HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">note normally when i add members like this CvSeqBlock* first; i do it like this (first (:pointer (:struct cv-block))) the new cffi style so if you can show me the new way on this that would be perfect =) <br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style:
normal;"> <br></div></div></body></html>