Open Source Telephony
 help / color / mirror / Atom feed
From: Olivier Guiter <olivier.guiter@linux.intel.com>
To: ofono@ofono.org
Subject: [PATCH 2/3] idmap.c: add get size function
Date: Mon, 21 Mar 2011 14:45:13 +0100	[thread overview]
Message-ID: <1300715114-5790-3-git-send-email-olivier.guiter@linux.intel.com> (raw)
In-Reply-To: <1300715114-5790-1-git-send-email-olivier.guiter@linux.intel.com>

[-- Attachment #1: Type: text/plain, Size: 842 bytes --]

---
 src/idmap.c |    5 +++++
 src/idmap.h |    1 +
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/idmap.c b/src/idmap.c
index 6d46e8a..967adbd 100644
--- a/src/idmap.c
+++ b/src/idmap.c
@@ -200,3 +200,8 @@ unsigned int idmap_get_max(struct idmap *idmap)
 {
 	return idmap->max;
 }
+
+unsigned int idmap_get_size(struct idmap *idmap)
+{
+	return idmap->size;
+}
diff --git a/src/idmap.h b/src/idmap.h
index d6141c2..6fc29fd 100644
--- a/src/idmap.h
+++ b/src/idmap.h
@@ -30,3 +30,4 @@ unsigned int idmap_alloc_next(struct idmap *idmap, unsigned int last);
 struct idmap *idmap_new_from_range(unsigned int min, unsigned int max);
 unsigned int idmap_get_min(struct idmap *idmap);
 unsigned int idmap_get_max(struct idmap *idmap);
+unsigned int idmap_get_size(struct idmap *idmap);
-- 
1.7.1


  parent reply	other threads:[~2011-03-21 13:45 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-21 13:45 [PATCH 0/3] Emulator CGDCONT Olivier Guiter
2011-03-21 13:45 ` [PATCH 1/3] gprs.c: add emulator CGDCONT handler Olivier Guiter
2011-03-21 13:45 ` Olivier Guiter [this message]
2011-03-21 13:45 ` [PATCH 3/3] gprs.c: add list contexts for emulator Olivier Guiter
2011-03-22  2:06   ` Denis Kenzior
2011-03-22 10:49     ` Olivier Guiter
2011-03-22 15:08       ` Denis Kenzior
2011-03-22 15:17         ` Aygon, Bertrand
2011-03-22 17:24           ` Denis Kenzior

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1300715114-5790-3-git-send-email-olivier.guiter@linux.intel.com \
    --to=olivier.guiter@linux.intel.com \
    --cc=ofono@ofono.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox