You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2016/11/10 22:38:29 UTC

[17/50] incubator-mynewt-newt git commit: mfg - allow number of images to be queried.

mfg - allow number of images to be queried.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/commit/aa87efd4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/aa87efd4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/aa87efd4

Branch: refs/heads/master
Commit: aa87efd4e107b845948922f44175046581c6d68f
Parents: 141160b
Author: Christopher Collins <cc...@apache.org>
Authored: Fri Oct 28 13:47:52 2016 -0700
Committer: Christopher Collins <cc...@apache.org>
Committed: Fri Oct 28 13:47:52 2016 -0700

----------------------------------------------------------------------
 newt/mfg/mfg.go | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/aa87efd4/newt/mfg/mfg.go
----------------------------------------------------------------------
diff --git a/newt/mfg/mfg.go b/newt/mfg/mfg.go
index 6805ab9..ea31f85 100644
--- a/newt/mfg/mfg.go
+++ b/newt/mfg/mfg.go
@@ -84,3 +84,7 @@ func (mi *MfgImage) sectionIds() []int {
 
 	return ids
 }
+
+func (mi *MfgImage) NumImages() int {
+	return len(mi.images)
+}