From: Sinny Kumari <sinny@redhat.com>
To: libabigail@sourceware.org
Cc: Dodji Seketeli <dodji@redhat.com>
Subject: [Patch] Adding function added_variables() into class corpus_diff
Date: Wed, 01 Jan 2014 00:00:00 -0000 [thread overview]
Message-ID: <642776609.17661594.1418626151614.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <1333003129.17660291.1418625779487.JavaMail.zimbra@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 301 bytes --]
Hi,
In order to access list of added variables obtained while
calculating abi diff between two libraries outside libabigail,
no public API was available. This patch (available in attachment)
adds added_variables() method to access same.
Thanks
--
Sinny Kumari
(sinny at redhat dot com)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Adding-function-added_variables-into-class-corpus_di.patch --]
[-- Type: text/x-patch; name=0001-Adding-function-added_variables-into-class-corpus_di.patch, Size: 1689 bytes --]
From ef12afec46a934a49c1e08e5567aac2e7219b9b2 Mon Sep 17 00:00:00 2001
From: Sinny Kumari <skumari@redhat.com>
Date: Mon, 15 Dec 2014 00:45:51 +0530
Subject: [PATCH 1/1] Adding function added_variables() into class corpus_diff
Function added_variables() is required in order to access list of
added variables obtained while calculating abi diff between two libraries
outside libabigail
* include/abg-comparison.h (corpus_diff::added_variables):
Declare new member function
* src/abg-comparison.cc (corpus_diff::added_variables):
Define new member function
Signed-off-by: Sinny Kumari <skumari@redhat.com>
---
include/abg-comparison.h | 3 +++
src/abg-comparison.cc | 6 ++++++
2 files changed, 9 insertions(+)
diff --git a/include/abg-comparison.h b/include/abg-comparison.h
index 4213a94..ec89cc6 100644
--- a/include/abg-comparison.h
+++ b/include/abg-comparison.h
@@ -2046,6 +2046,9 @@ public:
const string_var_ptr_map&
deleted_variables() const;
+
+ const string_var_ptr_map&
+ added_variables() const;
const string_changed_var_ptr_map&
changed_variables();
diff --git a/src/abg-comparison.cc b/src/abg-comparison.cc
index 105a58f..c8c7d6e 100644
--- a/src/abg-comparison.cc
+++ b/src/abg-comparison.cc
@@ -10201,6 +10201,12 @@ const string_var_ptr_map&
corpus_diff::deleted_variables() const
{return priv_->deleted_vars_;}
+/// Getter for the added variables of the diff
+/// @return the map of added variable.
+const string_var_ptr_map&
+corpus_diff::added_variables() const
+{return priv_->added_vars_;}
+
/// Getter for the variables which signature didn't change but which
/// do have some indirect changes in some sub-types.
///
--
2.1.0
next parent reply other threads:[~2014-12-15 6:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1333003129.17660291.1418625779487.JavaMail.zimbra@redhat.com>
2014-01-01 0:00 ` Sinny Kumari [this message]
2014-01-01 0:00 ` Dodji Seketeli
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=642776609.17661594.1418626151614.JavaMail.zimbra@redhat.com \
--to=sinny@redhat.com \
--cc=dodji@redhat.com \
--cc=libabigail@sourceware.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).