diff --git a/ifd_builder.go b/ifd_builder.go index 605eabd..e4cc14a 100644 --- a/ifd_builder.go +++ b/ifd_builder.go @@ -311,6 +311,10 @@ func NewIfdBuilderFromExistingChain(rootIfd *Ifd, itevr *IfdTagEntryValueResolve return firstIb } +func (ib *IfdBuilder) NextIb() (nextIb *IfdBuilder, err error) { + return ib.nextIb, nil +} + func (ib *IfdBuilder) ChildWithTagId(childIfdTagId uint16) (childIb *IfdBuilder, err error) { defer func() { if state := recover(); state != nil { diff --git a/ifd_enumerate.go b/ifd_enumerate.go index 79db40b..00c843e 100644 --- a/ifd_enumerate.go +++ b/ifd_enumerate.go @@ -434,6 +434,9 @@ func (ie *IfdEnumerate) Scan(rootIfdName string, ifdOffset uint32, visitor RawTa // Ifd represents a single parsed IFD. type Ifd struct { + + // TODO(dustin): !! Why are all of these public? Privatize them and then add NextIfd(). + // This is just for convenience, just so that we can easily get the values // and not involve other projects in semantics that they won't otherwise // need to know.