~ubuntu-branches/ubuntu/maverick/liferea/maverick

« back to all changes in this revision

Viewing changes to src/scripting/liferea_wrap.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve Kowalik
  • Date: 2008-06-23 12:44:17 UTC
  • mfrom: (1.2.52 upstream)
  • Revision ID: james.westby@ubuntu.com-20080623124417-o4klc8dom3qwd7wn
Tags: 1.4.16b-0.1ubuntu1
* Merge from Debian unstable.
* Remaining Ubuntu changes:
  - Change Build-Depends from xulrunner-dev to xulrunner-1.9-dev.
  - Add intltool to Build-Depends.
  - Fix systray mis-behaviour when Liferea is visible in another workspace.
  - Add Hildonisation from Frothing as a patch.
  - Add libhildon-1-dev Build-Depends for lpia.
  - --enable-maemo when building on lpia.
  - Call intltool-update -p to generate translation template for Rosetta.
  - Do not build transitional packages (not required due to Conflicts/
    Provides/Replaces).
  - Build-depend on liblualib50-dev instead of liblua5.1-0-dev.
  - Do not build webkit package.
  - Munge Maintainer field as per spec.
* Ubuntu changes dropped:
  - mobile.desktop, it isn't needed any more.
  - Added xulrunner-1.9 to liferea dependencies.
  - Quilt changes.
* Edit xulrunner-1.9 patch to not patch configure, handle that in
  99_autoconf.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4946
4946
}
4947
4947
 
4948
4948
 
 
4949
static int _wrap_item_parentNodeId_set(lua_State* L) {
 
4950
  int SWIG_arg = -1;
 
4951
  struct item *arg1 = (struct item *) 0 ;
 
4952
  char *arg2 = (char *) 0 ;
 
4953
  
 
4954
  SWIG_check_num_args("parentNodeId",2,2)
 
4955
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("parentNodeId",1,"struct item *");
 
4956
  if(!lua_isstring(L,2)) SWIG_fail_arg("parentNodeId",2,"char *");
 
4957
  
 
4958
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
 
4959
    SWIG_fail_ptr("item_parentNodeId_set",1,SWIGTYPE_p_item);
 
4960
  }
 
4961
  
 
4962
  arg2 = (char *)lua_tostring(L, 2);
 
4963
  {
 
4964
    if (arg1->parentNodeId) free((char *)arg1->parentNodeId);
 
4965
    if (arg2) {
 
4966
      arg1->parentNodeId = (char *) malloc(strlen((const char *)arg2)+1);
 
4967
      strcpy((char *)arg1->parentNodeId, (const char *)arg2);
 
4968
    } else {
 
4969
      arg1->parentNodeId = 0;
 
4970
    }
 
4971
  }
 
4972
  SWIG_arg=0;
 
4973
  
 
4974
  return SWIG_arg;
 
4975
  
 
4976
  if(0) SWIG_fail;
 
4977
  
 
4978
fail:
 
4979
  lua_error(L);
 
4980
  return SWIG_arg;
 
4981
}
 
4982
 
 
4983
 
 
4984
static int _wrap_item_parentNodeId_get(lua_State* L) {
 
4985
  int SWIG_arg = -1;
 
4986
  struct item *arg1 = (struct item *) 0 ;
 
4987
  char *result = 0 ;
 
4988
  
 
4989
  SWIG_check_num_args("parentNodeId",1,1)
 
4990
  if(!SWIG_isptrtype(L,1)) SWIG_fail_arg("parentNodeId",1,"struct item *");
 
4991
  
 
4992
  if (!SWIG_IsOK(SWIG_ConvertPtr(L,1,(void**)&arg1,SWIGTYPE_p_item,0))){
 
4993
    SWIG_fail_ptr("item_parentNodeId_get",1,SWIGTYPE_p_item);
 
4994
  }
 
4995
  
 
4996
  result = (char *) ((arg1)->parentNodeId);
 
4997
  SWIG_arg=0;
 
4998
  lua_pushstring(L,(const char*)result); SWIG_arg++;
 
4999
  return SWIG_arg;
 
5000
  
 
5001
  if(0) SWIG_fail;
 
5002
  
 
5003
fail:
 
5004
  lua_error(L);
 
5005
  return SWIG_arg;
 
5006
}
 
5007
 
 
5008
 
4949
5009
static int _wrap_item_sourceNr_set(lua_State* L) {
4950
5010
  int SWIG_arg = -1;
4951
5011
  struct item *arg1 = (struct item *) 0 ;
5082
5142
    { "parentItemId", _wrap_item_parentItemId_get, _wrap_item_parentItemId_set},
5083
5143
    { "isComment", _wrap_item_isComment_get, _wrap_item_isComment_set},
5084
5144
    { "nodeId", _wrap_item_nodeId_get, _wrap_item_nodeId_set},
 
5145
    { "parentNodeId", _wrap_item_parentNodeId_get, _wrap_item_parentNodeId_set},
5085
5146
    { "sourceNr", _wrap_item_sourceNr_get, _wrap_item_sourceNr_set},
5086
5147
    {0,0,0}
5087
5148
};